diff options
author | jacopograndi <jak.sk8@hotmail.it> | 2021-08-29 13:57:41 +0200 |
---|---|---|
committer | jacopograndi <jak.sk8@hotmail.it> | 2021-08-29 13:57:41 +0200 |
commit | ace5c3f3093c50ff7fa6f8b281a377e3788abbd5 (patch) | |
tree | 8a52803dc2b777822e9b1cab148bec8798bfeadf /game/ground.h | |
parent | a8bcacc95045102e67f2feabbdddf79535837554 (diff) |
adding techs
Diffstat (limited to 'game/ground.h')
-rw-r--r-- | game/ground.h | 14 |
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 |