X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FTile.h;h=6706b01a42a53741af395591b46cc47df3af2a62;hb=2ccc2369d32fb680a3047519d79c17de34c4e10a;hp=d21de56d25fe2afbdacdc8a4735a06550dd8aaf1;hpb=59c4aea0762cbc5f1bf74c5b1b35629408fb92af;p=l2e.git diff --git a/src/map/Tile.h b/src/map/Tile.h index d21de56..6706b01 100644 --- a/src/map/Tile.h +++ b/src/map/Tile.h @@ -28,6 +28,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 +37,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: - void SetOffset(const geometry::Vector &o) { offset = o; } - void SetFlags(Uint32 f) { flags = f; } + 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; };