diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-11 14:00:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-11 14:00:54 +0300 |
commit | dcac10d557a1e6e0b5854a1400d02fe106d5c027 (patch) | |
tree | 17a6c07f76f899faeb0d73c0ed8e7c047ce55e9a /src/resources/map/map.h | |
parent | 51627b2d480b39025be709fb98210c8388add513 (diff) | |
download | plus-dcac10d557a1e6e0b5854a1400d02fe106d5c027.tar.gz plus-dcac10d557a1e6e0b5854a1400d02fe106d5c027.tar.bz2 plus-dcac10d557a1e6e0b5854a1400d02fe106d5c027.tar.xz plus-dcac10d557a1e6e0b5854a1400d02fe106d5c027.zip |
Move metatile into separate file.
Diffstat (limited to 'src/resources/map/map.h')
-rw-r--r-- | src/resources/map/map.h | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/src/resources/map/map.h b/src/resources/map/map.h index f0712be76..1c1c41b5c 100644 --- a/src/resources/map/map.h +++ b/src/resources/map/map.h @@ -27,6 +27,7 @@ #include "being/actor.h" +#include "resources/map/metatile.h" #include "resources/map/properties.h" #include "listeners/configlistener.h" @@ -64,32 +65,6 @@ typedef AmbientLayerVector::iterator AmbientLayerVectorIter; static const int mapTileSize = 32; /** - * A meta tile stores additional information about a location on a tile map. - * This is information that doesn't need to be repeated for each tile in each - * layer of the map. - */ -struct MetaTile final -{ - /** - * Constructor. - */ - MetaTile() : Fcost(0), Gcost(0), Hcost(0), whichList(0), - parentX(0), parentY(0), blockmask(0) - {} - - A_DELETE_COPY(MetaTile) - - // Pathfinding members - int Fcost; /**< Estimation of total path cost */ - int Gcost; /**< Cost from start to this location */ - int Hcost; /**< Estimated cost to goal */ - unsigned whichList; /**< No list, open list or closed list */ - int parentX; /**< X coordinate of parent tile */ - int parentY; /**< Y coordinate of parent tile */ - unsigned char blockmask; /**< Blocking properties of this tile */ -}; - -/** * Animation cycle of a tile image which changes the map accordingly. */ class TileAnimation final |