Tile.h 216 B

123456789101112
  1. #ifndef TILE_H
  2. #define TILE_H
  3. #include "Entity.h"
  4. struct Tile {
  5. virtual ~Tile() = 0;
  6. // returns true if the tile is solid for the given entity
  7. virtual bool isSolid(const Entity& e) const = 0;
  8. };
  9. #endif