4 #include "../math/Vector.h"
13 static const int TYPE_ID = 603;
28 SDL_Surface *BattleBackground() { return battlebg; }
30 const math::Vector<int> &Offset() const { return offset; }
32 bool BlocksNorth() const { return flags & BLOCK_NORTH; }
33 bool BlocksEast() const { return flags & BLOCK_EAST; }
34 bool BlocksSouth() const { return flags & BLOCK_SOUTH; }
35 bool BlocksWest() const { return flags & BLOCK_WEST; }
37 bool IsLadder() const { return flags & LADDER; }
39 int NumFrames() const { return frames; }
41 static void CreateTypeDescription();
42 static void Construct(void *);
46 Tile &SetOffset(const math::Vector<int> &o) { offset = o; return *this; }
47 Tile &SetFlags(Uint32 f) { flags = f; return *this; }
50 SDL_Surface *battlebg;
51 math::Vector<int> offset;