From dcac10d557a1e6e0b5854a1400d02fe106d5c027 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 11 May 2014 14:00:54 +0300 Subject: Move metatile into separate file. --- src/resources/map/map.h | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) (limited to 'src/resources/map/map.h') 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" @@ -63,32 +64,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. */ -- cgit v1.2.3-70-g09d2