class Tile {
+public:
+ static const int TYPE_ID = 603;
+
public:
Tile();
~Tile() { }
BLOCK_WEST = 0x08,
};
+ SDL_Surface *BattleBackground() { return battlebg; }
+
const geometry::Vector<int> &Offset() const { return offset; }
bool BlocksNorth() const { return flags & BLOCK_NORTH; }
bool BlocksSouth() const { return flags & BLOCK_SOUTH; }
bool BlocksWest() const { return flags & BLOCK_WEST; }
+ static void CreateTypeDescription();
+ static void Construct(void *);
+
// temporary setters
public:
Tile &SetOffset(const geometry::Vector<int> &o) { offset = o; return *this; }
Tile &SetFlags(Uint32 f) { flags = f; return *this; }
private:
+ SDL_Surface *battlebg;
geometry::Vector<int> offset;
- Uint32 flags;
+ int flags;
};