Commented out debug statements again
[oweals/minetest.git] / src / client.h
index 963eb67025ba2e1bf25b04de97f8f739dc0c6d6d..930987c02e7f676f1289626c4ad44bdb85dc5aef 100644 (file)
@@ -199,16 +199,16 @@ public:
        // locks envlock
        void addNode(v3s16 p, MapNode n);
        
-       void updateCamera(v3f pos, v3f dir);
+       void updateCamera(v3f pos, v3f dir, f32 fov);
+       
+       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();
 
        void setPlayerControl(PlayerControl &control);
 
@@ -270,6 +270,12 @@ public:
 
        void addChatMessage(const std::wstring &message)
        {
+               if (message[0] == L'/') {
+                       m_chat_queue.push_back(
+                               (std::wstring)L"issued command: "+message);
+                       return;
+               }
+
                //JMutexAutoLock envlock(m_env_mutex); //bulk comment-out
                LocalPlayer *player = m_env.getLocalPlayer();
                assert(player != NULL);
@@ -296,15 +302,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:
        
@@ -336,9 +333,6 @@ private:
 
        IrrlichtDevice *m_device;
 
-       v3f camera_position;
-       v3f camera_direction;
-       
        // Server serialization version
        u8 m_server_ser_ver;