summaryrefslogtreecommitdiffstats
path: root/source/cPlayer.h
diff options
context:
space:
mode:
authoradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-09 23:17:30 +0100
committeradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-09 23:17:30 +0100
commit18b75636806a6fb7be0692d0350f54be4fa75348 (patch)
treece486f07ad284818afee6254b0e3ac0283b64428 /source/cPlayer.h
parentbugfix to redstone, it can climb walls again. (diff)
downloadcuberite-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 '')
-rw-r--r--source/cPlayer.h5
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