summaryrefslogtreecommitdiffstats
path: root/source/cPlayer.h
diff options
context:
space:
mode:
authoradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-01 21:09:13 +0100
committeradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-01 21:09:13 +0100
commitf849b664e085034a5c1e09bbb9a4ceb4127c05ae (patch)
tree35054d7ba1e231d71c1280eb5be26b7b0ab97f07 /source/cPlayer.h
parentPlayers can now place blocks in creative mode. The blocks players select from the creative mode inventory are not stored in the players' inventory. (I kind of like that) (diff)
downloadcuberite-f849b664e085034a5c1e09bbb9a4ceb4127c05ae.tar
cuberite-f849b664e085034a5c1e09bbb9a4ceb4127c05ae.tar.gz
cuberite-f849b664e085034a5c1e09bbb9a4ceb4127c05ae.tar.bz2
cuberite-f849b664e085034a5c1e09bbb9a4ceb4127c05ae.tar.lz
cuberite-f849b664e085034a5c1e09bbb9a4ceb4127c05ae.tar.xz
cuberite-f849b664e085034a5c1e09bbb9a4ceb4127c05ae.tar.zst
cuberite-f849b664e085034a5c1e09bbb9a4ceb4127c05ae.zip
Diffstat (limited to '')
-rw-r--r--source/cPlayer.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/source/cPlayer.h b/source/cPlayer.h
index d5ad6abac..1bb349a40 100644
--- a/source/cPlayer.h
+++ b/source/cPlayer.h
@@ -29,6 +29,11 @@ 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.
+ float GetLastBlockActionTime() { return m_LastBlockActionTime; } //return LastBlockActionTime for player.
+ void SetLastBlockActionTime();
+ void SetGameMode( int a_GameMode );
+
// Tries to move to a new position, with collision checks and stuff
virtual void MoveTo( const Vector3d & a_NewPos ); //tolua_export
@@ -65,13 +70,13 @@ public:
bool SaveToDisk();
bool LoadFromDisk();
-
+
//Burning logic
bool m_bBurnable;
enum PMetaState{NORMAL,BURNING,CROUCHED,RIDING} e_EPMetaState;
virtual void CheckMetaDataBurn();
virtual void InStateBurning(float a_Dt);
-
+
protected:
struct sPlayerState;
sPlayerState* m_pState;
@@ -93,5 +98,8 @@ protected:
float m_FireDamageInterval;
float m_BurnPeriod;
+ float m_LastBlockActionTime;
+ int m_GameMode;
+
cClientHandle* m_ClientHandle;
}; //tolua_export