GameUI refactor (part 1/X): GameUI object creation + GameUIFlags move to GameUI
authorLoic Blot <loic.blot@unix-experience.fr>
Wed, 3 Jan 2018 13:28:55 +0000 (14:28 +0100)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Fri, 5 Jan 2018 19:59:30 +0000 (20:59 +0100)
commit0ebaed430ad5cd2523d78d2e2c051576e948fe13
tree275dd4945128012b6844f9db6b858b31f7a70af4
parent549cfd9db80c858bdc8d23a237ea57ccf5f68400
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
src/client.cpp
src/client.h
src/client/CMakeLists.txt
src/client/gameui.cpp [new file with mode: 0644]
src/client/gameui.h [new file with mode: 0644]
src/game.cpp
src/game.h
src/unittest/CMakeLists.txt
src/unittest/test_gameui.cpp [new file with mode: 0644]