diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-12 13:32:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-17 14:53:41 +0300 |
commit | 8571843f1405e676142e7bb289f9879d10a888ed (patch) | |
tree | e414c90b31979372220fa5c78f9ebb6cc05cd024 /src/map.h | |
parent | 3d8682618f0b46a334f9db5dd0c780f671e7f072 (diff) | |
download | plus-8571843f1405e676142e7bb289f9879d10a888ed.tar.gz plus-8571843f1405e676142e7bb289f9879d10a888ed.tar.bz2 plus-8571843f1405e676142e7bb289f9879d10a888ed.tar.xz plus-8571843f1405e676142e7bb289f9879d10a888ed.zip |
add walkmaps support.
Fast detecting between two targets is they in same walkable area.
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -41,6 +41,7 @@ class Tileset; class SpecialLayer; class MapItem; class ObjectsLayer; +class WalkLayer; typedef std::vector<Tileset*> Tilesets; typedef std::vector<MapLayer*> Layers; @@ -404,6 +405,15 @@ class Map final : public Properties, public ConfigListener void setAtlas(Resource *const atlas) { mAtlas = atlas; } + const MetaTile *getMetaTiles() const + { return mMetaTiles; } + + WalkLayer *getWalkLayer() + { return mWalkLayer; } + + void setWalkLayer(WalkLayer *l) + { mWalkLayer = l; } + protected: friend class Actor; friend class Minimap; @@ -451,6 +461,7 @@ class Map final : public Properties, public ConfigListener int mTileWidth, mTileHeight; int mMaxTileHeight; MetaTile *mMetaTiles; + WalkLayer *mWalkLayer; Layers mLayers; Tilesets mTilesets; Actors mActors; |