4 #include "../geometry/Vector.h"
13 static const int TYPE_ID = 603;
27 SDL_Surface *BattleBackground() { return battlebg; }
29 const geometry::Vector<int> &Offset() const { return offset; }
31 bool BlocksNorth() const { return flags & BLOCK_NORTH; }
32 bool BlocksEast() const { return flags & BLOCK_EAST; }
33 bool BlocksSouth() const { return flags & BLOCK_SOUTH; }
34 bool BlocksWest() const { return flags & BLOCK_WEST; }
36 static void CreateTypeDescription();
37 static void Construct(void *);
41 Tile &SetOffset(const geometry::Vector<int> &o) { offset = o; return *this; }
42 Tile &SetFlags(Uint32 f) { flags = f; return *this; }
45 SDL_Surface *battlebg;
46 geometry::Vector<int> offset;
53 #endif /* MAP_TILE_H_ */