Added basic functions for width and height for Entities
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1498 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
e475c61a44
commit
088a79211b
@ -106,26 +106,29 @@ public:
|
|||||||
|
|
||||||
cWorld * GetWorld(void) const { return m_World; }
|
cWorld * GetWorld(void) const { return m_World; }
|
||||||
|
|
||||||
double GetHeadYaw (void) const {return m_HeadYaw; }
|
double GetHeadYaw (void) const { return m_HeadYaw; }
|
||||||
double GetMass (void) const {return m_Mass; }
|
double GetHeight (void) const { return m_Height; }
|
||||||
const Vector3d & GetPosition (void) const {return m_Pos; }
|
double GetMass (void) const { return m_Mass; }
|
||||||
double GetPosX (void) const {return m_Pos.x; }
|
const Vector3d & GetPosition (void) const { return m_Pos; }
|
||||||
double GetPosY (void) const {return m_Pos.y; }
|
double GetPosX (void) const { return m_Pos.x; }
|
||||||
double GetPosZ (void) const {return m_Pos.z; }
|
double GetPosY (void) const { return m_Pos.y; }
|
||||||
const Vector3d & GetRot (void) const {return m_Rot; }
|
double GetPosZ (void) const { return m_Pos.z; }
|
||||||
double GetRotation (void) const {return m_Rot.x; }
|
const Vector3d & GetRot (void) const { return m_Rot; }
|
||||||
double GetPitch (void) const {return m_Rot.y; }
|
double GetRotation (void) const { return m_Rot.x; }
|
||||||
double GetRoll (void) const {return m_Rot.z; }
|
double GetPitch (void) const { return m_Rot.y; }
|
||||||
|
double GetRoll (void) const { return m_Rot.z; }
|
||||||
Vector3d GetLookVector(void) const;
|
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 GetSpeedX (void) const { return m_Speed.x; }
|
||||||
double GetSpeedY (void) const { return m_Speed.y; }
|
double GetSpeedY (void) const { return m_Speed.y; }
|
||||||
double GetSpeedZ (void) const { return m_Speed.z; }
|
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 GetChunkX(void) const {return (int)floor(m_Pos.x / cChunkDef::Width); }
|
||||||
int GetChunkZ(void) const {return (int)floor(m_Pos.z / cChunkDef::Width); }
|
int GetChunkZ(void) const {return (int)floor(m_Pos.z / cChunkDef::Width); }
|
||||||
|
|
||||||
void SetHeadYaw (double a_HeadYaw);
|
void SetHeadYaw (double a_HeadYaw);
|
||||||
|
void SetHeight (double a_Height);
|
||||||
void SetMass (double a_Mass);
|
void SetMass (double a_Mass);
|
||||||
void SetPosX (double a_PosX);
|
void SetPosX (double a_PosX);
|
||||||
void SetPosY (double a_PosY);
|
void SetPosY (double a_PosY);
|
||||||
@ -141,6 +144,7 @@ public:
|
|||||||
void SetSpeedX (double a_SpeedX);
|
void SetSpeedX (double a_SpeedX);
|
||||||
void SetSpeedY (double a_SpeedY);
|
void SetSpeedY (double a_SpeedY);
|
||||||
void SetSpeedZ (double a_SpeedZ);
|
void SetSpeedZ (double a_SpeedZ);
|
||||||
|
void SetWidth (double a_Width);
|
||||||
|
|
||||||
void AddPosX (double a_AddPosX);
|
void AddPosX (double a_AddPosX);
|
||||||
void AddPosY (double a_AddPosY);
|
void AddPosY (double a_AddPosY);
|
||||||
@ -261,6 +265,10 @@ private:
|
|||||||
Vector3d m_WaterSpeed;
|
Vector3d m_WaterSpeed;
|
||||||
//Measured in Kilograms (Kg)
|
//Measured in Kilograms (Kg)
|
||||||
double m_Mass;
|
double m_Mass;
|
||||||
|
//It's Width.
|
||||||
|
double m_Width;
|
||||||
|
//It's height
|
||||||
|
double m_Height;
|
||||||
} ; // tolua_export
|
} ; // tolua_export
|
||||||
|
|
||||||
typedef std::list<cEntity *> cEntityList;
|
typedef std::list<cEntity *> cEntityList;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user