aboutsummaryrefslogtreecommitdiff
path: root/src/client.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.h')
-rw-r--r--src/client.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/client.h b/src/client.h
index fc1cbe310..b1310424d 100644
--- a/src/client.h
+++ b/src/client.h
@@ -307,6 +307,7 @@ private:
};
class ClientScripting;
+class GameUIFlags;
class Client : public con::PeerHandler, public InventoryManager, public IGameDef
{
@@ -326,7 +327,8 @@ public:
IWritableNodeDefManager *nodedef,
ISoundManager *sound,
MtEventManager *event,
- bool ipv6
+ bool ipv6,
+ GameUIFlags *game_ui_flags
);
~Client();
@@ -578,6 +580,13 @@ public:
m_client_event_queue.push(event);
}
+ void showGameChat(const bool show = true);
+ void showGameHud(const bool show = true);
+ void showMinimap(const bool show = true);
+ void showProfiler(const bool show = true);
+ void showGameFog(const bool show = true);
+ void showGameDebug(const bool show = true);
+
private:
// Virtual methods from con::PeerHandler
@@ -725,6 +734,7 @@ private:
bool m_modding_enabled;
UNORDERED_MAP<std::string, ModMetadata *> m_mod_storages;
float m_mod_storage_save_timer;
+ GameUIFlags *m_game_ui_flags;
DISABLE_CLASS_COPY(Client);
};