API
Functions and classes available in the Lua API
|
#include <000c.h>
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 Vector3d & | GetPosition (void) const |
double | GetPosX (void) const |
double | GetPosY (void) const |
double | GetPosZ (void) const |
double | GetRoll (void) const |
const Vector3d & | GetRot (void) const |
double | GetRotation (void) const |
const Vector3d & | GetSpeed (void) const |
double | GetSpeedX (void) const |
double | GetSpeedY (void) const |
double | GetSpeedZ (void) const |
int | GetUniqueID (void) const |
double | GetWidth (void) const |
cWorld * | GetWorld (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) |
anonymous enum |
enum cEntity::eEntityType |
void cEntity::AddPosition | ( | double | a_AddPosX, |
double | a_AddPosY, | ||
double | a_AddPosZ | ||
) |
|
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 | ||
) |
|
inline |
void cEntity::AddSpeedX | ( | double | a_AddSpeedX | ) |
void cEntity::AddSpeedY | ( | double | a_AddSpeedY | ) |
void cEntity::AddSpeedZ | ( | double | a_AddSpeedZ | ) |
void cEntity::Destroy | ( | void | ) |
|
inline |
|
inline |
|
virtual |
Returns the topmost class name for the object.
|
static |
|
inline |
|
inline |
|
inline |
Vector3d cEntity::GetLookVector | ( | void | ) | const |
|
inline |
|
virtual |
Returns the topmost class's parent class name for the object. cEntity returns an empty string (no parent).
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Returns true if the entity is of the specified class or a subclass (cPawn's IsA("cEntity") returns true)
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
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 | ||
) |
|
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 | ||
) |
|
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 | ) |