summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkeyboard.osh@gmail.com <keyboard.osh@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-21 07:49:56 +0200
committerkeyboard.osh@gmail.com <keyboard.osh@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-21 07:49:56 +0200
commit088a79211b40692885e54239bd91d6e86ef86a46 (patch)
treec8147916e0ac704910746aedb3eb85894f3293da
parentStairs placement fix (patch contributed by Simi) (diff)
downloadcuberite-088a79211b40692885e54239bd91d6e86ef86a46.tar
cuberite-088a79211b40692885e54239bd91d6e86ef86a46.tar.gz
cuberite-088a79211b40692885e54239bd91d6e86ef86a46.tar.bz2
cuberite-088a79211b40692885e54239bd91d6e86ef86a46.tar.lz
cuberite-088a79211b40692885e54239bd91d6e86ef86a46.tar.xz
cuberite-088a79211b40692885e54239bd91d6e86ef86a46.tar.zst
cuberite-088a79211b40692885e54239bd91d6e86ef86a46.zip
Diffstat (limited to '')
-rw-r--r--source/Entity.h30
1 files changed, 19 insertions, 11 deletions
diff --git a/source/Entity.h b/source/Entity.h
index bc3d90b15..713cdf70d 100644
--- a/source/Entity.h
+++ b/source/Entity.h
@@ -106,26 +106,29 @@ public:
cWorld * GetWorld(void) const { return m_World; }
- double GetHeadYaw (void) const {return m_HeadYaw; }
- double GetMass (void) const {return m_Mass; }
- const Vector3d & GetPosition (void) const {return m_Pos; }
- double GetPosX (void) const {return m_Pos.x; }
- double GetPosY (void) const {return m_Pos.y; }
- double GetPosZ (void) const {return m_Pos.z; }
- const Vector3d & GetRot (void) const {return m_Rot; }
- double GetRotation (void) const {return m_Rot.x; }
- double GetPitch (void) const {return m_Rot.y; }
- double GetRoll (void) const {return m_Rot.z; }
+ double GetHeadYaw (void) const { return m_HeadYaw; }
+ double GetHeight (void) const { return m_Height; }
+ double GetMass (void) const { return m_Mass; }
+ const Vector3d & GetPosition (void) const { return m_Pos; }
+ double GetPosX (void) const { return m_Pos.x; }
+ double GetPosY (void) const { return m_Pos.y; }
+ double GetPosZ (void) const { return m_Pos.z; }
+ const Vector3d & GetRot (void) const { return m_Rot; }
+ double GetRotation (void) const { return m_Rot.x; }
+ double GetPitch (void) const { return m_Rot.y; }
+ double GetRoll (void) const { return m_Rot.z; }
Vector3d GetLookVector(void) const;
- const Vector3d & GetSpeed (void) const { return m_Speed; }
+ const Vector3d & GetSpeed (void) const { return m_Speed; }
double GetSpeedX (void) const { return m_Speed.x; }
double GetSpeedY (void) const { return m_Speed.y; }
double GetSpeedZ (void) const { return m_Speed.z; }
+ double GetWidth (void) const { return m_Width; }
int GetChunkX(void) const {return (int)floor(m_Pos.x / cChunkDef::Width); }
int GetChunkZ(void) const {return (int)floor(m_Pos.z / cChunkDef::Width); }
void SetHeadYaw (double a_HeadYaw);
+ void SetHeight (double a_Height);
void SetMass (double a_Mass);
void SetPosX (double a_PosX);
void SetPosY (double a_PosY);
@@ -141,6 +144,7 @@ public:
void SetSpeedX (double a_SpeedX);
void SetSpeedY (double a_SpeedY);
void SetSpeedZ (double a_SpeedZ);
+ void SetWidth (double a_Width);
void AddPosX (double a_AddPosX);
void AddPosY (double a_AddPosY);
@@ -261,6 +265,10 @@ private:
Vector3d m_WaterSpeed;
//Measured in Kilograms (Kg)
double m_Mass;
+ //It's Width.
+ double m_Width;
+ //It's height
+ double m_Height;
} ; // tolua_export
typedef std::list<cEntity *> cEntityList;