summaryrefslogtreecommitdiff
path: root/src/game.hpp
Commit message (Collapse)AuthorAge
* Add GameEditData struct to contain *_info arraysBardur Arantsson2016-10-05
|
* Move player_hp[] into GameBardur Arantsson2016-09-17
|
* Move wilderness structure into GameBardur Arantsson2016-09-17
|
* Introduce Game structBardur Arantsson2016-09-17
Motivation: SIOF is such a huge chore to work around at this point that it's probably best to just start the looong task of getting rid of the globals. Currently we allocate a single global Game instance which we leak. The idea here is to start moving global game state into the single global Game singleton and eventually allocating the Game variable on the stack such that everything works out nicely wrt. freeing allocated memory and such. Once all the game state has been moved into Game we can start plumbing all the functions, classes, &c such that we don't have to reference game state via the "game" global.