]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/player.h
added dedicated server build without irrlicht
[dragonfireclient.git] / src / player.h
index 82ed92649d767baf763c754a0f7c7f8369d891a4..7337eb6db3e654634ee3b72b044aa488fcfcfafb 100644 (file)
@@ -95,6 +95,7 @@ class Player
        virtual bool isLocal() const = 0;
 
        bool touching_ground;
+       bool in_water;
        
        Inventory inventory;
 
@@ -108,6 +109,26 @@ class Player
        v3f m_position;
 };
 
+class ServerRemotePlayer : public Player
+{
+public:
+       ServerRemotePlayer()
+       {
+       }
+       virtual ~ServerRemotePlayer()
+       {
+       }
+
+       bool isLocal() const
+       {
+               return false;
+       }
+
+private:
+};
+
+#ifndef SERVER
+
 class RemotePlayer : public Player, public scene::ISceneNode
 {
 public:
@@ -164,6 +185,9 @@ class RemotePlayer : public Player, public scene::ISceneNode
        core::aabbox3d<f32> m_box;
 };
 
+#endif
+
+#ifndef SERVER
 struct PlayerControl
 {
        PlayerControl()
@@ -224,6 +248,7 @@ class LocalPlayer : public Player
 
 private:
 };
+#endif // !SERVER
 
 #endif