From 18b75636806a6fb7be0692d0350f54be4fa75348 Mon Sep 17 00:00:00 2001 From: "admin@omencraft.com" Date: Wed, 9 Nov 2011 22:17:30 +0000 Subject: Added m_IP to player class and binding to get IP for LUA. (Probably should use m_pState) git-svn-id: http://mc-server.googlecode.com/svn/trunk@82 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cPlayer.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/cPlayer.h') 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 -- cgit v1.2.3