From bb16c32bde58cba70e4877aa2d3ebd04332eb575 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Tue, 4 Jan 2022 13:35:02 +0100 Subject: linux compile and imgs --- game/ground.h | 72 +++++++++++++++++++++++++++++------------------------------ 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'game/ground.h') 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 resources; - - void build (int sx, int sy); - - 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); -}; - +#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 resources; + + void build (int sx, int sy); + + 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 \ No newline at end of file -- cgit v1.2.3-54-g00ecf