summaryrefslogtreecommitdiffstats
path: root/source/Player.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-12 05:46:01 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-12 05:46:01 +0100
commit43e684071933adef93040e8d4b830d5c6b71cf9a (patch)
tree014e5300feb1cdbbb8f24e4e42594eeb841f0be2 /source/Player.h
parentFixed rclk in doublechests (diff)
downloadcuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar
cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar.gz
cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar.bz2
cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar.lz
cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar.xz
cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar.zst
cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.zip
Diffstat (limited to 'source/Player.h')
-rw-r--r--source/Player.h77
1 files changed, 39 insertions, 38 deletions
diff --git a/source/Player.h b/source/Player.h
index 2d4680c86..45f3a3226 100644
--- a/source/Player.h
+++ b/source/Player.h
@@ -35,7 +35,7 @@ public:
cPlayer(cClientHandle * a_Client, const AString & a_PlayerName);
virtual ~cPlayer();
- virtual void Initialize( cWorld* a_World ); //tolua_export
+ virtual void Initialize( cWorld* a_World ); // tolua_export
virtual void SpawnOn(cClientHandle & a_Client) override;
@@ -58,83 +58,84 @@ public:
void SetTouchGround( bool a_bTouchGround );
inline void SetStance( const double a_Stance ) { m_Stance = a_Stance; }
- double GetEyeHeight(); //tolua_export
- Vector3d GetEyePosition(); //tolua_export
+ double GetEyeHeight(); // tolua_export
+ Vector3d GetEyePosition(); // tolua_export
inline bool IsOnGround(void) const {return m_bTouchGround; } // tolua_export
- inline const double GetStance(void) const { return m_Pos.y + 1.62; } //tolua_export // TODO: Proper stance when crouching etc.
- inline cInventory & GetInventory(void) { return m_Inventory; } //tolua_export
+ inline const double GetStance(void) const { return m_Pos.y + 1.62; } // tolua_export // TODO: Proper stance when crouching etc.
+ inline cInventory & GetInventory(void) { return m_Inventory; } // tolua_export
inline const cInventory & GetInventory(void) const { return m_Inventory; }
- inline const cItem & GetEquippedItem(void) const {return GetInventory().GetEquippedItem(); } // tolua_export
+ inline cItem & GetEquippedItem(void) { return GetInventory().GetEquippedItem(); } // tolua_export
+ inline const cItem & GetEquippedItem(void) const { return GetInventory().GetEquippedItem(); }
virtual void TeleportTo(double a_PosX, double a_PosY, double a_PosZ) override;
- eGameMode GetGameMode(void) const { return m_GameMode; } //tolua_export
- std::string GetIP() { return m_IP; } //tolua_export
- float GetLastBlockActionTime() { return m_LastBlockActionTime; } //tolua_export
- int GetLastBlockActionCnt() { return m_LastBlockActionCnt; } //tolua_export
- void SetLastBlockActionCnt( int ); //tolua_export
- void SetLastBlockActionTime(); //tolua_export
- void SetGameMode( eGameMode a_GameMode ); //tolua_export
+ eGameMode GetGameMode(void) const { return m_GameMode; } // tolua_export
+ std::string GetIP() { return m_IP; } // tolua_export
+ float GetLastBlockActionTime() { return m_LastBlockActionTime; } // tolua_export
+ int GetLastBlockActionCnt() { return m_LastBlockActionCnt; } // tolua_export
+ void SetLastBlockActionCnt( int ); // tolua_export
+ void SetLastBlockActionTime(); // tolua_export
+ void SetGameMode( eGameMode a_GameMode ); // tolua_export
void LoginSetGameMode( eGameMode a_GameMode );
void SetIP(const AString & a_IP);
// Tries to move to a new position, with collision checks and stuff
- virtual void MoveTo( const Vector3d & a_NewPos ); //tolua_export
+ virtual void MoveTo( const Vector3d & a_NewPos ); // tolua_export
cWindow* GetWindow() { return m_CurrentWindow; }
void OpenWindow( cWindow* a_Window );
void CloseWindow(char a_WindowType);
- cClientHandle * GetClientHandle(void) const { return m_ClientHandle; } //tolua_export
+ cClientHandle * GetClientHandle(void) const { return m_ClientHandle; } // tolua_export
- void SendMessage(const AString & a_Message); //tolua_export
+ void SendMessage(const AString & a_Message); // tolua_export
- const AString & GetName(void) const { return m_PlayerName; } //tolua_export
- void SetName(const AString & a_Name) { m_PlayerName = a_Name; } //tolua_export
+ const AString & GetName(void) const { return m_PlayerName; } // tolua_export
+ void SetName(const AString & a_Name) { m_PlayerName = a_Name; } // tolua_export
typedef std::list< cGroup* > GroupList;
typedef std::list< std::string > StringList;
/// Adds a player to existing group or creates a new group when it doesn't exist
- void AddToGroup( const AString & a_GroupName ); //tolua_export
+ void AddToGroup( const AString & a_GroupName ); // tolua_export
/// Removes a player from the group, resolves permissions and group inheritance (case sensitive)
- void RemoveFromGroup( const AString & a_GroupName ); //tolua_export
- bool CanUseCommand( const AString & a_Command ); //tolua_export
- bool HasPermission( const AString & a_Permission ); //tolua_export
+ void RemoveFromGroup( const AString & a_GroupName ); // tolua_export
+ bool CanUseCommand( const AString & a_Command ); // tolua_export
+ bool HasPermission( const AString & a_Permission ); // tolua_export
const GroupList & GetGroups() { return m_Groups; } // >> EXPORTED IN MANUALBINDINGS <<
StringList GetResolvedPermissions(); // >> EXPORTED IN MANUALBINDINGS <<
- bool IsInGroup( const AString & a_Group ); //tolua_export
+ bool IsInGroup( const AString & a_Group ); // tolua_export
- AString GetColor(void) const; //tolua_export
+ AString GetColor(void) const; // tolua_export
- void TossItem(bool a_bDraggingItem, char a_Amount = 1, short a_CreateType = 0, short a_CreateHealth = 0); //tolua_export
+ void TossItem(bool a_bDraggingItem, char a_Amount = 1, short a_CreateType = 0, short a_CreateHealth = 0); // tolua_export
- void Heal( int a_Health ); //tolua_export
+ void Heal( int a_Health ); // tolua_export
/// Returns true if any food has been consumed, false if player "full"
- bool Feed(short a_Food, float a_Saturation); //tolua_export
+ bool Feed(short a_Food, float a_Saturation); // tolua_export
- short GetMaxFoodLevel() { return m_MaxFoodLevel; } //tolua_export
- short GetFoodLevel() { return m_FoodLevel; } //tolua_export
+ short GetMaxFoodLevel() { return m_MaxFoodLevel; } // tolua_export
+ short GetFoodLevel() { return m_FoodLevel; } // tolua_export
- float GetMaxFoodSaturationLevel() { return m_MaxFoodSaturationLevel; } //tolua_export
- float GetFoodSaturationLevel() { return m_FoodSaturationLevel; } //tolua_export
+ float GetMaxFoodSaturationLevel() { return m_MaxFoodSaturationLevel; } // tolua_export
+ float GetFoodSaturationLevel() { return m_FoodSaturationLevel; } // tolua_export
- void AddFoodExhaustion(float a_Exhaustion) { m_FoodExhaustionLevel += a_Exhaustion; } //tolua_export
+ void AddFoodExhaustion(float a_Exhaustion) { m_FoodExhaustionLevel += a_Exhaustion; } // tolua_export
virtual void KilledBy(cPawn * a_Killer) override;
- void Respawn(void); //tolua_export
+ void Respawn(void); // tolua_export
- void SetVisible( bool a_bVisible ); //tolua_export
- bool IsVisible(void) const { return m_bVisible; } //tolua_export
+ void SetVisible( bool a_bVisible ); // tolua_export
+ bool IsVisible(void) const { return m_bVisible; } // tolua_export
- bool MoveToWorld(const char * a_WorldName ); //tolua_export
+ bool MoveToWorld(const char * a_WorldName ); // tolua_export
bool SaveToDisk(void);
bool LoadFromDisk(void);
- void LoadPermissionsFromDisk(void); //tolua_export
+ void LoadPermissionsFromDisk(void); // tolua_export
const AString & GetLoadedWorldName() { return m_LoadedWorldName; }
@@ -198,7 +199,7 @@ protected:
/// Filters out damage for creative mode
virtual void DoTakeDamage(TakeDamageInfo & TDI) override;
-} ; //tolua_export
+} ; // tolua_export