From 29f818c314f86f9a842840c20d9634f0711507a6 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 16 Mar 2015 21:28:46 -0400 Subject: Added tool to map editor to set game starting position --- tools/mapedit/src/map.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tools/mapedit/src/map.h') diff --git a/tools/mapedit/src/map.h b/tools/mapedit/src/map.h index 5753cae..df3e237 100644 --- a/tools/mapedit/src/map.h +++ b/tools/mapedit/src/map.h @@ -20,6 +20,8 @@ const int GAME_WIDTH = 320; const int GAME_HEIGHT = 200; const int MAP_WIDTH = GAME_WIDTH/TILE_WIDTH; const int MAP_HEIGHT = GAME_HEIGHT/TILE_HEIGHT - 1; +const int PLAYER_WIDTH[5] = {10, 0, 0, 0, 0}; +const int PLAYER_HEIGHT[5] = {12, 0, 0, 0, 0}; class MapLoadException: public std::exception { @@ -57,6 +59,11 @@ struct MapObjectEntry { { return (object == other.object) && (position == other.position); } + + bool operator!=(MapObjectEntry& other) const + { + return (object != other.object) && (position != other.position); + } }; class Map { @@ -77,6 +84,7 @@ class Map { wxTreeItemId getTreeItemId() const; std::list> getChildren() const; bool getExpanded() const; + World* getWorld() const; void setTitle(std::string title, bool dirty = true); void setTileAt(int x, int y, int tile, bool dirty = true); -- cgit 1.4.1