summaryrefslogtreecommitdiff
path: root/src/client.h
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2011-09-07 19:21:28 +0200
committerKahrl <kahrl@gmx.net>2011-09-07 19:21:28 +0200
commitc0b35fa429c68b49b2d6a5124aff6dcc31400b63 (patch)
tree32a3c9856e7f34bf1055177ba3f939624dc0c695 /src/client.h
parentd28ea57083481bff8180249fc8b43f7ed7b18545 (diff)
downloadminetest-c0b35fa429c68b49b2d6a5124aff6dcc31400b63.tar.gz
minetest-c0b35fa429c68b49b2d6a5124aff6dcc31400b63.tar.bz2
minetest-c0b35fa429c68b49b2d6a5124aff6dcc31400b63.zip
Removed unused camera_position and camera_direction fields from Client. Moved ClientEnvironment::drawPostFx to ClientMap::renderPostFx -- this will make the camera management classes easier to write, as ClientMap already knows the camera position but ClientEnvironment doesn't and has to be told about it. This also eliminates the need for Client::getEnv(). Made the post effect color a content feature defined in content_mapnode.h.
Diffstat (limited to 'src/client.h')
-rw-r--r--src/client.h20
1 files changed, 5 insertions, 15 deletions
diff --git a/src/client.h b/src/client.h
index 1a7ef924a..9c942ff9a 100644
--- a/src/client.h
+++ b/src/client.h
@@ -201,14 +201,16 @@ public:
void updateCamera(v3f pos, v3f dir);
+ void renderPostFx();
+
// Returns InvalidPositionException if not found
MapNode getNode(v3s16 p);
// Wrapper to Map
NodeMetadata* getNodeMetadata(v3s16 p);
- // Get the player position, and optionally put the
- // eye position in *eye_position
- v3f getPlayerPosition(v3f *eye_position=NULL);
+ LocalPlayer* getLocalPlayer();
+
+ v3f getPlayerPosition(v3f *eye_position);
void setPlayerControl(PlayerControl &control);
@@ -302,15 +304,6 @@ public:
{
return m_access_denied_reason;
}
-
- /*
- This should only be used for calling the special drawing stuff in
- ClientEnvironment
- */
- ClientEnvironment * getEnv()
- {
- return &m_env;
- }
private:
@@ -342,9 +335,6 @@ private:
IrrlichtDevice *m_device;
- v3f camera_position;
- v3f camera_direction;
-
// Server serialization version
u8 m_server_ser_ver;