X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FTile.h;h=137da43c02b30faff6ec6b92b70b98e2ef072469;hb=0911d263c10cca314305799d5b839ee9653cac0b;hp=84c740a61c8d527d5393de753773315903362803;hpb=cc3d698b8c1ad09d7a3f9e3f28bc84e0ac1735ea;p=l2e.git diff --git a/src/map/Tile.h b/src/map/Tile.h index 84c740a..137da43 100644 --- a/src/map/Tile.h +++ b/src/map/Tile.h @@ -1,7 +1,7 @@ #ifndef MAP_TILE_H_ #define MAP_TILE_H_ -#include "../geometry/Vector.h" +#include "../math/Vector.h" #include @@ -22,32 +22,35 @@ public: BLOCK_EAST = 0x02, BLOCK_SOUTH = 0x04, BLOCK_WEST = 0x08, + LADDER = 0x10, }; SDL_Surface *BattleBackground() { return battlebg; } - const geometry::Vector &Offset() const { return offset; } + const math::Vector &Offset() const { return offset; } bool BlocksNorth() const { return flags & BLOCK_NORTH; } bool BlocksEast() const { return flags & BLOCK_EAST; } bool BlocksSouth() const { return flags & BLOCK_SOUTH; } bool BlocksWest() const { return flags & BLOCK_WEST; } + bool IsLadder() const { return flags & LADDER; } + static void CreateTypeDescription(); static void Construct(void *); // temporary setters public: - Tile &SetOffset(const geometry::Vector &o) { offset = o; return *this; } + Tile &SetOffset(const math::Vector &o) { offset = o; return *this; } Tile &SetFlags(Uint32 f) { flags = f; return *this; } private: SDL_Surface *battlebg; - geometry::Vector offset; + math::Vector offset; int flags; }; } -#endif /* MAP_TILE_H_ */ +#endif