diff options
author | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-11-09 23:17:30 +0100 |
---|---|---|
committer | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-11-09 23:17:30 +0100 |
commit | 18b75636806a6fb7be0692d0350f54be4fa75348 (patch) | |
tree | ce486f07ad284818afee6254b0e3ac0283b64428 /source/cPlayer.h | |
parent | bugfix to redstone, it can climb walls again. (diff) | |
download | cuberite-18b75636806a6fb7be0692d0350f54be4fa75348.tar cuberite-18b75636806a6fb7be0692d0350f54be4fa75348.tar.gz cuberite-18b75636806a6fb7be0692d0350f54be4fa75348.tar.bz2 cuberite-18b75636806a6fb7be0692d0350f54be4fa75348.tar.lz cuberite-18b75636806a6fb7be0692d0350f54be4fa75348.tar.xz cuberite-18b75636806a6fb7be0692d0350f54be4fa75348.tar.zst cuberite-18b75636806a6fb7be0692d0350f54be4fa75348.zip |
Diffstat (limited to 'source/cPlayer.h')
-rw-r--r-- | source/cPlayer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/cPlayer.h b/source/cPlayer.h index fc546bd8d..08234df88 100644 --- a/source/cPlayer.h +++ b/source/cPlayer.h @@ -31,10 +31,12 @@ public: virtual void TeleportTo( cEntity* a_Entity ); //tolua_export
virtual void TeleportTo( const double & a_PosX, const double & a_PosY, const double & a_PosZ ); //tolua_export
- int GetGameMode() { return m_GameMode; } //return GameMode for player.
+ int GetGameMode() { return m_GameMode; } //tolua_export
+ std::string GetIP() { return m_IP; } //tolua_export
float GetLastBlockActionTime() { return m_LastBlockActionTime; } //return LastBlockActionTime for player.
void SetLastBlockActionTime();
void SetGameMode( int a_GameMode );
+ void SetIP( std::string a_IP );
// Tries to move to a new position, with collision checks and stuff
virtual void MoveTo( const Vector3d & a_NewPos ); //tolua_export
@@ -104,6 +106,7 @@ protected: float m_LastBlockActionTime;
int m_GameMode;
+ std::string m_IP;
cClientHandle* m_ClientHandle;
}; //tolua_export
|