aboutsummaryrefslogtreecommitdiff
path: root/game/gst.h
diff options
context:
space:
mode:
authorjacopograndi <jak.sk8@hotmail.it>2021-08-19 18:46:51 +0200
committerjacopograndi <jak.sk8@hotmail.it>2021-08-19 18:46:51 +0200
commita8bcacc95045102e67f2feabbdddf79535837554 (patch)
tree5781dd4cb2fe66b67deab84ff4641b7e21b9c174 /game/gst.h
forgot to make repo until now
Diffstat (limited to 'game/gst.h')
-rw-r--r--game/gst.h34
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