diff options
Diffstat (limited to 'game/gst.h')
-rw-r--r-- | game/gst.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/game/gst.h b/game/gst.h new file mode 100644 index 0000000..340d596 --- /dev/null +++ b/game/gst.h @@ -0,0 +1,34 @@ +#ifndef GST_H +#define GST_H + +#include <vector> + +#include "ground.h" +#include "entity.h" +#include "tile.h" +#include "player.h" + +class Gst { + public: + Gst(int sx, int sy) : ground(sx, sy) {} + + std::vector<EntityInfo> infos; + std::vector<Tile> tiles; + std::vector<Entity> entities; + Ground ground; + + std::vector<Player> players; + + int turn { 0 }; + int day { 0 }; + + void end_day () { + day++; + if (day >= players.size()) { + day = 0; + turn++; + } + } +}; + +#endif
\ No newline at end of file |