4 * Created on: Sep 29, 2012
11 #include "../geometry/Vector.h"
20 static const int TYPE_ID = 603;
34 SDL_Surface *BattleBackground() { return battlebg; }
36 const geometry::Vector<int> &Offset() const { return offset; }
38 bool BlocksNorth() const { return flags & BLOCK_NORTH; }
39 bool BlocksEast() const { return flags & BLOCK_EAST; }
40 bool BlocksSouth() const { return flags & BLOCK_SOUTH; }
41 bool BlocksWest() const { return flags & BLOCK_WEST; }
43 static void CreateTypeDescription();
44 static void Construct(void *);
48 Tile &SetOffset(const geometry::Vector<int> &o) { offset = o; return *this; }
49 Tile &SetFlags(Uint32 f) { flags = f; return *this; }
52 SDL_Surface *battlebg;
53 geometry::Vector<int> offset;
60 #endif /* MAP_TILE_H_ */