aboutsummaryrefslogtreecommitdiff
path: root/game/ground.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/ground.h')
-rw-r--r--game/ground.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/game/ground.h b/game/ground.h
index 545deb9..c9f997b 100644
--- a/game/ground.h
+++ b/game/ground.h
@@ -5,6 +5,15 @@
class Gst;
+class Resource {
+ public:
+ Resource (int pos, int kind) : pos(pos), kind(kind) {}
+
+ enum Type { gold, food };
+
+ int pos, kind;
+};
+
class Ground {
public:
Ground (int sx, int sy);
@@ -12,11 +21,14 @@ class Ground {
int *tiles;
+ std::vector<Resource> resources;
+
int sizex;
int sizey;
int at (int x, int y);
std::vector<int> star (int pos);
- std::vector<int> move_area (Gst &gst, Entity ent);
+ std::vector<int> move_area (Gst &gst, Entity &ent);
+ std::vector<int> attack_targets (Gst &gst, Entity &ent);
};
#endif \ No newline at end of file