From a8bcacc95045102e67f2feabbdddf79535837554 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Thu, 19 Aug 2021 18:46:51 +0200 Subject: forgot to make repo until now --- game/gst.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 game/gst.h (limited to 'game/gst.h') 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 + +#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 infos; + std::vector tiles; + std::vector entities; + Ground ground; + + std::vector 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 -- cgit v1.2.3-54-g00ecf