API
Functions and classes available in the Lua API
|
#include <000e.h>
Public Types | |
enum | { MAX_HEALTH = 20 } |
Public Member Functions | |
void | AddFoodExhaustion (float a_Exhaustion) |
void | AddToGroup (const AString &a_GroupName) |
bool | CanUseCommand (const AString &a_Command) |
void | CloseWindow (bool a_CanRefuse=true) |
Closes the current window, resets current window to m_InventoryWindow. A plugin may refuse the closing if a_CanRefuse is true. | |
void | CloseWindowIfID (char a_WindowID, bool a_CanRefuse=true) |
Closes the current window if it matches the specified ID, resets current window to m_InventoryWindow. | |
bool | Feed (short a_Food, float a_Saturation) |
cClientHandle * | GetClientHandle (void) const |
AString | GetColor (void) const |
const cItem & | GetEquippedItem (void) const |
double | GetEyeHeight () |
Vector3d | GetEyePosition () |
short | GetFoodLevel () |
float | GetFoodSaturationLevel () |
eGameMode | GetGameMode (void) const |
cInventory & | GetInventory (void) |
std::string | GetIP () |
int | GetLastBlockActionCnt () |
float | GetLastBlockActionTime () |
short | GetMaxFoodLevel () |
float | GetMaxFoodSaturationLevel () |
const AString & | GetName (void) const |
const double | GetStance (void) const |
cWindow * | GetWindow (void) |
bool | HasPermission (const AString &a_Permission) |
void | Heal (int a_Health) |
Heals the specified amount of HPs. | |
virtual void | Initialize (cWorld *a_World) |
bool | IsInGroup (const AString &a_Group) |
bool | IsOnGround (void) const |
bool | IsVisible (void) const |
void | LoadPermissionsFromDisk (void) |
virtual void | MoveTo (const Vector3d &a_NewPos) |
bool | MoveToWorld (const char *a_WorldName) |
void | RemoveFromGroup (const AString &a_GroupName) |
void | Respawn (void) |
void | SendMessage (const AString &a_Message) |
void | SetGameMode (eGameMode a_GameMode) |
void | SetLastBlockActionCnt (int) |
void | SetLastBlockActionTime () |
void | SetName (const AString &a_Name) |
void | SetVisible (bool a_bVisible) |
void | TossItem (bool a_bDraggingItem, char a_Amount=1, short a_CreateType=0, short a_CreateHealth=0) |
Additional Inherited Members | |
![]() | |
static const char * | GetClassStatic (void) |
|
inline |
void cPlayer::AddToGroup | ( | const AString & | a_GroupName | ) |
bool cPlayer::CanUseCommand | ( | const AString & | a_Command | ) |
void cPlayer::CloseWindow | ( | bool | a_CanRefuse = true | ) |
Closes the current window, resets current window to m_InventoryWindow. A plugin may refuse the closing if a_CanRefuse is true.
void cPlayer::CloseWindowIfID | ( | char | a_WindowID, |
bool | a_CanRefuse = true |
||
) |
Closes the current window if it matches the specified ID, resets current window to m_InventoryWindow.
bool cPlayer::Feed | ( | short | a_Food, |
float | a_Saturation | ||
) |
|
inline |
AString cPlayer::GetColor | ( | void | ) | const |
|
inline |
double cPlayer::GetEyeHeight | ( | ) |
Vector3d cPlayer::GetEyePosition | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool cPlayer::HasPermission | ( | const AString & | a_Permission | ) |
void cPlayer::Heal | ( | int | a_HitPoints | ) |
Heals the specified amount of HPs.
Reimplemented from cPawn.
|
virtual |
bool cPlayer::IsInGroup | ( | const AString & | a_Group | ) |
|
inline |
|
inline |
void cPlayer::LoadPermissionsFromDisk | ( | void | ) |
|
virtual |
bool cPlayer::MoveToWorld | ( | const char * | a_WorldName | ) |
void cPlayer::RemoveFromGroup | ( | const AString & | a_GroupName | ) |
void cPlayer::Respawn | ( | void | ) |
void cPlayer::SendMessage | ( | const AString & | a_Message | ) |
void cPlayer::SetGameMode | ( | eGameMode | a_GameMode | ) |
void cPlayer::SetLastBlockActionCnt | ( | int | ) |
void cPlayer::SetLastBlockActionTime | ( | ) |
|
inline |
void cPlayer::SetVisible | ( | bool | a_bVisible | ) |
void cPlayer::TossItem | ( | bool | a_bDraggingItem, |
char | a_Amount = 1 , |
||
short | a_CreateType = 0 , |
||
short | a_CreateHealth = 0 |
||
) |