X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FTile.h;h=84c740a61c8d527d5393de753773315903362803;hb=ef2496b3cb7ce66b7f831278be66261834b732e5;hp=88db623ed0cdb5e8f24e2949f924ac3dc697b06c;hpb=56b6adfe5cf27293ee40b43502142e0690d8293b;p=l2e.git diff --git a/src/map/Tile.h b/src/map/Tile.h index 88db623..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() { } @@ -28,6 +24,8 @@ public: BLOCK_WEST = 0x08, }; + SDL_Surface *BattleBackground() { return battlebg; } + const geometry::Vector &Offset() const { return offset; } bool BlocksNorth() const { return flags & BLOCK_NORTH; } @@ -35,14 +33,18 @@ 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; } Tile &SetFlags(Uint32 f) { flags = f; return *this; } private: + SDL_Surface *battlebg; geometry::Vector offset; - Uint32 flags; + int flags; };