#ifndef TILE_HPP #define TILE_HPP #include "Actor.hpp" struct Tile { enum Type { GRASS, WATER }; const Type type; const int x, y; Tile(Type _type, int _x, int _y) : type(_type), x(_x), y(_y) {} Actor* actor() { return _actor; } bool actor(Actor *actor); void clearActor() { _actor = nullptr; } private: Actor *_actor = nullptr; }; #endif