summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.h
diff options
context:
space:
mode:
authornesco <emmanuel@federbusch.fr>2014-09-16 20:02:27 +0200
committernesco <emmanuel@federbusch.fr>2014-09-16 20:02:27 +0200
commit8dedbe4db52ee434595d9bdb32b3850a6c1e175f (patch)
tree83c984c51d5b338f09ccefa8fcdd10d9ccd3af65 /src/Entities/Player.h
parentPre 1.8 release (diff)
downloadcuberite-8dedbe4db52ee434595d9bdb32b3850a6c1e175f.tar
cuberite-8dedbe4db52ee434595d9bdb32b3850a6c1e175f.tar.gz
cuberite-8dedbe4db52ee434595d9bdb32b3850a6c1e175f.tar.bz2
cuberite-8dedbe4db52ee434595d9bdb32b3850a6c1e175f.tar.lz
cuberite-8dedbe4db52ee434595d9bdb32b3850a6c1e175f.tar.xz
cuberite-8dedbe4db52ee434595d9bdb32b3850a6c1e175f.tar.zst
cuberite-8dedbe4db52ee434595d9bdb32b3850a6c1e175f.zip
Diffstat (limited to 'src/Entities/Player.h')
-rw-r--r--src/Entities/Player.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h
index 9821cc6d9..d64dd6b99 100644
--- a/src/Entities/Player.h
+++ b/src/Entities/Player.h
@@ -171,6 +171,9 @@ public:
/** Returns true if the player is in Adventure mode, either explicitly, or by inheriting from current world */
bool IsGameModeAdventure(void) const;
+ /** Returns true if the player is in Spectator mode, either explicitly, or by inheriting from current world */
+ bool IsGameModeSpectator(void) const;
+
AString GetIP(void) const { return m_IP; } // tolua_export
/** Returns the associated team, NULL if none */