X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FTile.h;h=84c740a61c8d527d5393de753773315903362803;hb=cc3d698b8c1ad09d7a3f9e3f28bc84e0ac1735ea;hp=06b3b1175b62ae315c5c5c3054e7b4e7eb051bc4;hpb=0ad5ca97b5df217329bc319d62564a9f46ba11d7;p=l2e.git diff --git a/src/map/Tile.h b/src/map/Tile.h index 06b3b11..84c740a 100644 --- a/src/map/Tile.h +++ b/src/map/Tile.h @@ -1,10 +1,3 @@ -/* - * Tile.h - * - * Created on: Sep 29, 2012 - * Author: holy - */ - #ifndef MAP_TILE_H_ #define MAP_TILE_H_ @@ -16,6 +9,9 @@ namespace map { class Tile { +public: + static const int TYPE_ID = 603; + public: Tile(); ~Tile() { } @@ -37,6 +33,9 @@ public: 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; } @@ -45,7 +44,7 @@ public: private: SDL_Surface *battlebg; geometry::Vector offset; - Uint32 flags; + int flags; };