#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 sx, int sy); ~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 attack_targets (Gst &gst, Entity &ent); std::vector heal_targets (Gst &gst, Entity &ent); std::vector convert_targets (Gst &gst, Entity &ent); }; #endif