diff options
author | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-04 13:35:02 +0100 |
---|---|---|
committer | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-04 13:35:02 +0100 |
commit | bb16c32bde58cba70e4877aa2d3ebd04332eb575 (patch) | |
tree | de3d82cca043c26cbaa64837a3b2c18efc6ddb64 /game/ground.h | |
parent | 411d2f6d6a6e5370d33f0f54b2f2de7147a9d977 (diff) |
linux compile and imgs
Diffstat (limited to 'game/ground.h')
-rw-r--r-- | game/ground.h | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/game/ground.h b/game/ground.h index d1a4f34..fcded29 100644 --- a/game/ground.h +++ b/game/ground.h @@ -1,37 +1,37 @@ -#ifndef GROUND_H -#define GROUND_H - -#include "entity.h" - -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 *tiles; - - std::vector<Resource> resources; - - void build (int sx, int sy); - - 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> attack_targets (Gst &gst, Entity &ent); - std::vector<int> heal_targets (Gst &gst, Entity &ent); - std::vector<int> convert_targets (Gst &gst, Entity &ent); -}; - +#ifndef GROUND_H
+#define GROUND_H
+
+#include "entity.h"
+
+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 *tiles;
+
+ std::vector<Resource> resources;
+
+ void build (int sx, int sy);
+
+ 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> attack_targets (Gst &gst, Entity &ent);
+ std::vector<int> heal_targets (Gst &gst, Entity &ent);
+ std::vector<int> convert_targets (Gst &gst, Entity &ent);
+};
+
#endif
\ No newline at end of file |