diff options
author | keyboard.osh@gmail.com <keyboard.osh@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-22 09:18:03 +0200 |
---|---|---|
committer | keyboard.osh@gmail.com <keyboard.osh@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-22 09:18:03 +0200 |
commit | de03dd6460c59c8abdd5b613ffa73511486022fc (patch) | |
tree | 4ee1c327aca18ea8d460889fbd99e895fd46a412 /source/Entity.h | |
parent | Fixed Profiled Release build (missing preprocessor macro for static XML compilation) (diff) | |
download | cuberite-de03dd6460c59c8abdd5b613ffa73511486022fc.tar cuberite-de03dd6460c59c8abdd5b613ffa73511486022fc.tar.gz cuberite-de03dd6460c59c8abdd5b613ffa73511486022fc.tar.bz2 cuberite-de03dd6460c59c8abdd5b613ffa73511486022fc.tar.lz cuberite-de03dd6460c59c8abdd5b613ffa73511486022fc.tar.xz cuberite-de03dd6460c59c8abdd5b613ffa73511486022fc.tar.zst cuberite-de03dd6460c59c8abdd5b613ffa73511486022fc.zip |
Diffstat (limited to 'source/Entity.h')
-rw-r--r-- | source/Entity.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/Entity.h b/source/Entity.h index 5871ce89c..3009bc611 100644 --- a/source/Entity.h +++ b/source/Entity.h @@ -159,7 +159,7 @@ public: // tolua_end virtual void Tick(float a_Dt, cChunk & a_Chunk); - virtual void HandlePhysics(float a_Dt, cChunk & a_Chunk) {} + virtual void HandlePhysics(float a_Dt, cChunk & a_Chunk); /** Descendants override this function to send a command to the specified client to spawn the entity on the client. To spawn on all eligible clients, use cChunkMap::BroadcastSpawnEntity() @@ -220,6 +220,9 @@ protected: bool m_bDirtyPosition; bool m_bDirtySpeed; + bool m_bOnGround; + float m_Gravity; + // Last Position. double m_LastPosX, m_LastPosY, m_LastPosZ; @@ -248,6 +251,7 @@ private: Vector3d m_Speed; Vector3d m_Rot; Vector3d m_Pos; + Vector3d m_WaterSpeed; } ; // tolua_export typedef std::list<cEntity *> cEntityList; |