summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-01-31 02:55:26 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-01-31 02:55:26 +0000
commitb0d28814ecdd29d3f33ab926b3ff3c325675e3b2 (patch)
tree57878c3e9900db640a34df7c319dbd930c18ab24 /src/map.h
parent3b1cb45812fe4308073057c27837bc0c69a5d35e (diff)
downloadmana-b0d28814ecdd29d3f33ab926b3ff3c325675e3b2.tar.gz
mana-b0d28814ecdd29d3f33ab926b3ff3c325675e3b2.tar.bz2
mana-b0d28814ecdd29d3f33ab926b3ff3c325675e3b2.tar.xz
mana-b0d28814ecdd29d3f33ab926b3ff3c325675e3b2.zip
Various small cleanups.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h52
1 files changed, 15 insertions, 37 deletions
diff --git a/src/map.h b/src/map.h
index 95144695..35e3d75f 100644
--- a/src/map.h
+++ b/src/map.h
@@ -25,8 +25,8 @@
#define _TMW_MAP_H_
#include <list>
-#include <map>
#include <vector>
+
#include "properties.h"
class Graphics;
@@ -44,42 +44,21 @@ typedef std::list<Sprite*> Sprites;
* This is information that doesn't need to be repeated for each tile in each
* layer of the map.
*/
-class MetaTile
-{
- public:
- /**
- * Constructor.
- */
- MetaTile();
-
- // Pathfinding members
- int Fcost; /**< Estimation of total path cost */
- int Gcost; /**< Cost from start to this location */
- int Hcost; /**< Estimated cost to goal */
- int whichList; /**< No list, open list or closed list */
- int parentX; /**< X coordinate of parent tile */
- int parentY; /**< Y coordinate of parent tile */
- bool walkable; /**< Can beings walk on this tile */
-};
-
-/**
- * A location on a tile map. Used for pathfinding, open list.
- */
-class Location
+struct MetaTile
{
- public:
- /**
- * Constructor.
- */
- Location(int x, int y, MetaTile *tile);
-
- /**
- * Comparison operator.
- */
- bool operator< (const Location &loc) const;
-
- int x, y;
- MetaTile *tile;
+ /**
+ * Constructor.
+ */
+ MetaTile():whichList(0) {};
+
+ // Pathfinding members
+ int Fcost; /**< Estimation of total path cost */
+ int Gcost; /**< Cost from start to this location */
+ int Hcost; /**< Estimated cost to goal */
+ int whichList; /**< No list, open list or closed list */
+ int parentX; /**< X coordinate of parent tile */
+ int parentY; /**< Y coordinate of parent tile */
+ bool walkable; /**< Can beings walk on this tile */
};
/**
@@ -211,7 +190,6 @@ class Map : public Properties
int mTileWidth, mTileHeight;
MetaTile *metaTiles;
Image **tiles;
- std::map<std::string,std::string> properties;
Tilesets tilesets;
Sprites mSprites;