4 * Created on: Sep 29, 2012
11 #include "../geometry/Vector.h"
31 SDL_Surface *BattleBackground() { return battlebg; }
33 const geometry::Vector<int> &Offset() const { return offset; }
35 bool BlocksNorth() const { return flags & BLOCK_NORTH; }
36 bool BlocksEast() const { return flags & BLOCK_EAST; }
37 bool BlocksSouth() const { return flags & BLOCK_SOUTH; }
38 bool BlocksWest() const { return flags & BLOCK_WEST; }
40 static void CreateTypeDescription();
41 static void Construct(void *);
45 Tile &SetOffset(const geometry::Vector<int> &o) { offset = o; return *this; }
46 Tile &SetFlags(Uint32 f) { flags = f; return *this; }
49 SDL_Surface *battlebg;
50 geometry::Vector<int> offset;
57 #endif /* MAP_TILE_H_ */