summaryrefslogtreecommitdiff
path: root/src/game.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2018-01-03 14:28:55 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2018-01-05 20:59:30 +0100
commit0ebaed430ad5cd2523d78d2e2c051576e948fe13 (patch)
tree275dd4945128012b6844f9db6b858b31f7a70af4 /src/game.h
parent549cfd9db80c858bdc8d23a237ea57ccf5f68400 (diff)
downloadminetest-0ebaed430ad5cd2523d78d2e2c051576e948fe13.tar.gz
minetest-0ebaed430ad5cd2523d78d2e2c051576e948fe13.tar.bz2
minetest-0ebaed430ad5cd2523d78d2e2c051576e948fe13.zip
GameUI refactor (part 1/X): GameUI object creation + GameUIFlags move to GameUI
Game class is too huge and has too specialization on various subjects, like UI, formspecs, client, renderer. Start to move UI related things to GameUI object and cleanup them Other improvements: * updateChat: more performance on error messages by remove string copies * Initialize all game class members in definition instead of constructor (with nullptr instead of NULL) * Drop unused Client::show{GameChat,GameHud,Profiler,GameFog} * Add GameUI unittests
Diffstat (limited to 'src/game.h')
-rw-r--r--src/game.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/game.h b/src/game.h
index 22a8d6f9b..223278006 100644
--- a/src/game.h
+++ b/src/game.h
@@ -26,18 +26,6 @@ class InputHandler;
class ChatBackend; /* to avoid having to include chat.h */
struct SubgameSpec;
-// Flags that can, or may, change during main game loop
-struct GameUIFlags
-{
- bool show_chat;
- bool show_hud;
- bool show_minimap;
- bool force_fog_off;
- bool show_debug;
- bool show_profiler_graph;
- bool disable_camera_update;
-};
-
void the_game(bool *kill,
bool random_input,
InputHandler *input,