Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Refactor Game class (part 2) (#5422)
* showPauseMenu is now part of game * remove many flags parameters passed to game functions, use the member. * rename VolatileRunFlags to GameUIFlags (this will permit to share structure with client and CSM * updatePointedThing: remove pointer ref, we already have the pointer in rundata * move some attributes outside of VolatileRunFlags after renaming, to game class * rename statustext to m_statustext * make some const variables static * All those changes permit to reduce a little bit function class cost and will permit to interface CSM with some interesting Game flags * Expose GameUIFlags to client * Client now have GameUIFlags parameter and setters for other classes * Fix minimap show/hide in Lua because we now have access to the real flag
- Loading branch information
Showing
with
285 additions
and 266 deletions.
- +35 −2 src/client.cpp
- +11 −1 src/client.h
- +216 −262 src/game.cpp
- +12 −0 src/game.h
- +1 −1 src/guiFormSpecMenu.h
- +10 −0 src/script/lua_api/l_minimap.cpp
Oops, something went wrong.