X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FTile.h;h=252ede3b8788be4bf8d5900be9c3498fadb4a352;hb=092a2dd175a4001a495c84ee85211734fb928c83;hp=6706b01a42a53741af395591b46cc47df3af2a62;hpb=7c43158af1abf38fa896a442cb3c6d8a5bc630e7;p=l2e.git diff --git a/src/map/Tile.h b/src/map/Tile.h index 6706b01..252ede3 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() { } @@ -30,7 +26,7 @@ public: SDL_Surface *BattleBackground() { return battlebg; } - const geometry::Vector &Offset() const { return offset; } + const math::Vector &Offset() const { return offset; } bool BlocksNorth() const { return flags & BLOCK_NORTH; } bool BlocksEast() const { return flags & BLOCK_EAST; } @@ -42,12 +38,12 @@ public: // 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: SDL_Surface *battlebg; - geometry::Vector offset; + math::Vector offset; int flags; };