X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FTile.h;h=43f9dbb8e9b11a2939a7ea28d6ff32074d8aa5fd;hb=1907ca03c5e865c4d398170042aa384c67ffff29;hp=88db623ed0cdb5e8f24e2949f924ac3dc697b06c;hpb=56b6adfe5cf27293ee40b43502142e0690d8293b;p=l2e.git diff --git a/src/map/Tile.h b/src/map/Tile.h index 88db623..43f9dbb 100644 --- a/src/map/Tile.h +++ b/src/map/Tile.h @@ -16,6 +16,9 @@ namespace map { class Tile { +public: + static const int TYPE_ID = 603; + public: Tile(); ~Tile() { } @@ -28,6 +31,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 +40,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; };