From ace5c3f3093c50ff7fa6f8b281a377e3788abbd5 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Sun, 29 Aug 2021 13:57:41 +0200 Subject: adding techs --- game/ground.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'game/ground.h') 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 resources; + int sizex; int sizey; int at (int x, int y); std::vector star (int pos); - std::vector move_area (Gst &gst, Entity ent); + std::vector move_area (Gst &gst, Entity &ent); + std::vector attack_targets (Gst &gst, Entity &ent); }; #endif \ No newline at end of file -- cgit v1.2.3-54-g00ecf