X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FTile.h;h=f5afb246219e7d3e88faa3d06eb5980ff640076a;hb=4309d259becd96ead792678257e910c03a6b4a3d;hp=88db623ed0cdb5e8f24e2949f924ac3dc697b06c;hpb=56b6adfe5cf27293ee40b43502142e0690d8293b;p=l2e.git diff --git a/src/map/Tile.h b/src/map/Tile.h index 88db623..f5afb24 100644 --- a/src/map/Tile.h +++ b/src/map/Tile.h @@ -1,14 +1,7 @@ -/* - * Tile.h - * - * Created on: Sep 29, 2012 - * Author: holy - */ - #ifndef MAP_TILE_H_ #define MAP_TILE_H_ -#include "../geometry/Vector.h" +#include "../math/Vector.h" #include @@ -16,6 +9,9 @@ namespace map { class Tile { +public: + static const int TYPE_ID = 603; + public: Tile(); ~Tile() { } @@ -28,24 +24,30 @@ public: BLOCK_WEST = 0x08, }; - const geometry::Vector &Offset() const { return offset; } + SDL_Surface *BattleBackground() { return battlebg; } + + 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; } + 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: - geometry::Vector offset; - Uint32 flags; + SDL_Surface *battlebg; + math::Vector offset; + int flags; }; } -#endif /* MAP_TILE_H_ */ +#endif