summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-19 17:33:22 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-19 17:33:22 +0200
commit09ca7d144afaa4c3fb7727390d11a10c3a29d98e (patch)
tree4dadccef8ed72f8954b8d079f901709b578f6171 /src/World.h
parentCreated MobSpawnerEntity class. (diff)
parentQtBiomeVisualiser: More gcc fixes. (diff)
downloadcuberite-09ca7d144afaa4c3fb7727390d11a10c3a29d98e.tar
cuberite-09ca7d144afaa4c3fb7727390d11a10c3a29d98e.tar.gz
cuberite-09ca7d144afaa4c3fb7727390d11a10c3a29d98e.tar.bz2
cuberite-09ca7d144afaa4c3fb7727390d11a10c3a29d98e.tar.lz
cuberite-09ca7d144afaa4c3fb7727390d11a10c3a29d98e.tar.xz
cuberite-09ca7d144afaa4c3fb7727390d11a10c3a29d98e.tar.zst
cuberite-09ca7d144afaa4c3fb7727390d11a10c3a29d98e.zip
Diffstat (limited to 'src/World.h')
-rw-r--r--src/World.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/World.h b/src/World.h
index 0c57e6611..8b40037af 100644
--- a/src/World.h
+++ b/src/World.h
@@ -188,6 +188,9 @@ public:
/** Returns true if the world is in Adventure mode */
bool IsGameModeAdventure(void) const { return (m_GameMode == gmAdventure); }
+ /** Returns true if the world is in Spectator mode */
+ bool IsGameModeSpectator(void) const { return (m_GameMode == gmSpectator); }
+
bool IsPVPEnabled(void) const { return m_bEnabledPVP; }
bool IsDeepSnowEnabled(void) const { return m_IsDeepSnowEnabled; }