API
Functions and classes available in the Lua API
Public Types | Public Member Functions | Static Public Member Functions | List of all members
cEntity Class Reference

#include <000c.h>

Inheritance diagram for cEntity:
Inheritance graph
[legend]

Public Types

enum  {
  ENTITY_STATUS_HURT = 2, ENTITY_STATUS_DEAD = 3, ENTITY_STATUS_WOLF_TAMING = 6, ENTITY_STATUS_WOLF_TAMED = 7,
  ENTITY_STATUS_WOLF_SHAKING = 8, ENTITY_STATUS_EATING_ACCEPTED = 9, ENTITY_STATUS_SHEEP_EATING = 10
}
enum  eEntityType {
  etEntity, etPlayer, etPickup, etMonster,
  etMob = etMonster, etFallingBlock, etMinecart, etTNT,
  eEntityType_Entity = etEntity, eEntityType_Player = etPlayer, eEntityType_Pickup = etPickup, eEntityType_Mob = etMob
}

Public Member Functions

void AddPosition (double a_AddPosX, double a_AddPosY, double a_AddPosZ)
void AddPosition (const Vector3d &a_AddPos)
void AddPosX (double a_AddPosX)
void AddPosY (double a_AddPosY)
void AddPosZ (double a_AddPosZ)
void AddSpeed (double a_AddSpeedX, double a_AddSpeedY, double a_AddSpeedZ)
void AddSpeed (const Vector3d &a_AddSpeed)
void AddSpeedX (double a_AddSpeedX)
void AddSpeedY (double a_AddSpeedY)
void AddSpeedZ (double a_AddSpeedZ)
void Destroy (void)
int GetChunkX (void) const
int GetChunkZ (void) const
virtual const char * GetClass (void) const
 Returns the topmost class name for the object.
eEntityType GetEntityType (void) const
double GetHeadYaw (void) const
double GetHeight (void) const
Vector3d GetLookVector (void) const
double GetMass (void) const
virtual const char * GetParentClass (void) const
 Returns the topmost class's parent class name for the object. cEntity returns an empty string (no parent).
double GetPitch (void) const
const Vector3dGetPosition (void) const
double GetPosX (void) const
double GetPosY (void) const
double GetPosZ (void) const
double GetRoll (void) const
const Vector3dGetRot (void) const
double GetRotation (void) const
const Vector3dGetSpeed (void) const
double GetSpeedX (void) const
double GetSpeedY (void) const
double GetSpeedZ (void) const
int GetUniqueID (void) const
double GetWidth (void) const
cWorldGetWorld (void) const
virtual bool IsA (const char *a_ClassName) const
 Returns true if the entity is of the specified class or a subclass (cPawn's IsA("cEntity") returns true)
virtual bool IsCrouched (void) const
bool IsDestroyed (void) const
bool IsMinecart (void) const
bool IsMob (void) const
virtual bool IsOnFire (void) const
bool IsPickup (void) const
bool IsPlayer (void) const
virtual bool IsRclking (void) const
virtual bool IsRiding (void) const
virtual bool IsSprinting (void) const
void SetHeadYaw (double a_HeadYaw)
void SetHeight (double a_Height)
void SetMass (double a_Mass)
void SetPitch (double a_Pitch)
void SetPosition (double a_PosX, double a_PosY, double a_PosZ)
void SetPosition (const Vector3d &a_Pos)
void SetPosX (double a_PosX)
void SetPosY (double a_PosY)
void SetPosZ (double a_PosZ)
void SetRoll (double a_Roll)
void SetRot (const Vector3f &a_Rot)
void SetRotation (double a_Rotation)
void SetSpeed (double a_SpeedX, double a_SpeedY, double a_SpeedZ)
void SetSpeed (const Vector3d &a_Speed)
void SetSpeedX (double a_SpeedX)
void SetSpeedY (double a_SpeedY)
void SetSpeedZ (double a_SpeedZ)
void SetWidth (double a_Width)

Static Public Member Functions

static const char * GetClassStatic (void)

Member Enumeration Documentation

anonymous enum
Enumerator:
ENTITY_STATUS_HURT 
ENTITY_STATUS_DEAD 
ENTITY_STATUS_WOLF_TAMING 
ENTITY_STATUS_WOLF_TAMED 
ENTITY_STATUS_WOLF_SHAKING 
ENTITY_STATUS_EATING_ACCEPTED 
ENTITY_STATUS_SHEEP_EATING 
Enumerator:
etEntity 
etPlayer 
etPickup 
etMonster 
etMob 
etFallingBlock 
etMinecart 
etTNT 
eEntityType_Entity 
eEntityType_Player 
eEntityType_Pickup 
eEntityType_Mob 

Member Function Documentation

void cEntity::AddPosition ( double  a_AddPosX,
double  a_AddPosY,
double  a_AddPosZ 
)
void cEntity::AddPosition ( const Vector3d a_AddPos)
inline
void cEntity::AddPosX ( double  a_AddPosX)
void cEntity::AddPosY ( double  a_AddPosY)
void cEntity::AddPosZ ( double  a_AddPosZ)
void cEntity::AddSpeed ( double  a_AddSpeedX,
double  a_AddSpeedY,
double  a_AddSpeedZ 
)
void cEntity::AddSpeed ( const Vector3d a_AddSpeed)
inline
void cEntity::AddSpeedX ( double  a_AddSpeedX)
void cEntity::AddSpeedY ( double  a_AddSpeedY)
void cEntity::AddSpeedZ ( double  a_AddSpeedZ)
void cEntity::Destroy ( void  )
int cEntity::GetChunkX ( void  ) const
inline
int cEntity::GetChunkZ ( void  ) const
inline
virtual const char* cEntity::GetClass ( void  ) const
virtual

Returns the topmost class name for the object.

static const char* cEntity::GetClassStatic ( void  )
static
eEntityType cEntity::GetEntityType ( void  ) const
inline
double cEntity::GetHeadYaw ( void  ) const
inline
double cEntity::GetHeight ( void  ) const
inline
Vector3d cEntity::GetLookVector ( void  ) const
double cEntity::GetMass ( void  ) const
inline
virtual const char* cEntity::GetParentClass ( void  ) const
virtual

Returns the topmost class's parent class name for the object. cEntity returns an empty string (no parent).

double cEntity::GetPitch ( void  ) const
inline
const Vector3d& cEntity::GetPosition ( void  ) const
inline
double cEntity::GetPosX ( void  ) const
inline
double cEntity::GetPosY ( void  ) const
inline
double cEntity::GetPosZ ( void  ) const
inline
double cEntity::GetRoll ( void  ) const
inline
const Vector3d& cEntity::GetRot ( void  ) const
inline
double cEntity::GetRotation ( void  ) const
inline
const Vector3d& cEntity::GetSpeed ( void  ) const
inline
double cEntity::GetSpeedX ( void  ) const
inline
double cEntity::GetSpeedY ( void  ) const
inline
double cEntity::GetSpeedZ ( void  ) const
inline
int cEntity::GetUniqueID ( void  ) const
inline
double cEntity::GetWidth ( void  ) const
inline
cWorld* cEntity::GetWorld ( void  ) const
inline
virtual bool cEntity::IsA ( const char *  a_ClassName) const
virtual

Returns true if the entity is of the specified class or a subclass (cPawn's IsA("cEntity") returns true)

virtual bool cEntity::IsCrouched ( void  ) const
inlinevirtual
bool cEntity::IsDestroyed ( void  ) const
inline
bool cEntity::IsMinecart ( void  ) const
inline
bool cEntity::IsMob ( void  ) const
inline
virtual bool cEntity::IsOnFire ( void  ) const
inlinevirtual
bool cEntity::IsPickup ( void  ) const
inline
bool cEntity::IsPlayer ( void  ) const
inline
virtual bool cEntity::IsRclking ( void  ) const
inlinevirtual
virtual bool cEntity::IsRiding ( void  ) const
inlinevirtual
virtual bool cEntity::IsSprinting ( void  ) const
inlinevirtual
void cEntity::SetHeadYaw ( double  a_HeadYaw)
void cEntity::SetHeight ( double  a_Height)
void cEntity::SetMass ( double  a_Mass)
void cEntity::SetPitch ( double  a_Pitch)
void cEntity::SetPosition ( double  a_PosX,
double  a_PosY,
double  a_PosZ 
)
void cEntity::SetPosition ( const Vector3d a_Pos)
inline
void cEntity::SetPosX ( double  a_PosX)
void cEntity::SetPosY ( double  a_PosY)
void cEntity::SetPosZ ( double  a_PosZ)
void cEntity::SetRoll ( double  a_Roll)
void cEntity::SetRot ( const Vector3f a_Rot)
void cEntity::SetRotation ( double  a_Rotation)
void cEntity::SetSpeed ( double  a_SpeedX,
double  a_SpeedY,
double  a_SpeedZ 
)
void cEntity::SetSpeed ( const Vector3d a_Speed)
inline
void cEntity::SetSpeedX ( double  a_SpeedX)
void cEntity::SetSpeedY ( double  a_SpeedY)
void cEntity::SetSpeedZ ( double  a_SpeedZ)
void cEntity::SetWidth ( double  a_Width)