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; }
42 Tile &SetOffset(const geometry::Vector<int> &o) { offset = o; return *this; }
43 Tile &SetFlags(Uint32 f) { flags = f; return *this; }
46 SDL_Surface *battlebg;
47 geometry::Vector<int> offset;
54 #endif /* MAP_TILE_H_ */