blob: 340d59626042d9c99c26bf5372979c282f53226b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
|