diff options
Diffstat (limited to 'sigmod/Map.cpp')
-rw-r--r-- | sigmod/Map.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sigmod/Map.cpp b/sigmod/Map.cpp index dd85bd67..ff078c2c 100644 --- a/sigmod/Map.cpp +++ b/sigmod/Map.cpp @@ -32,8 +32,6 @@ using namespace Sigmod; -const QStringList Map::TypeStr = QStringList() << "Outdoor" << "Dungeon" << "Building"; - Map::Map(const Map& map) : Object(map.parent(), map.id()) { @@ -43,7 +41,6 @@ Map::Map(const Map& map) : Map::Map(const Game* parent, const int id) : Object(parent, id), m_name(""), - m_type(Outdoor), m_width(1), m_height(1) { @@ -117,7 +114,6 @@ void Map::load(const QDomElement& xml) { LOAD_BEGIN(); LOAD(name); - LOAD_ENUM(type, Type); LOAD(width); LOAD(height); LOAD_SUB(newEffect, MapEffect); @@ -131,7 +127,6 @@ QDomElement Map::save() const { SAVE_CREATE(); SAVE(name); - SAVE_ENUM(type, Type); SAVE(width); SAVE(height); SAVE_SUB(MapEffect, effects); @@ -143,17 +138,14 @@ QDomElement Map::save() const } SETTER(Map, QString&, Name, name) -SETTER(Map, Type, Type, type) SETTER(Map, int, Width, width) SETTER(Map, int, Height, height) GETTER(Map, QString, name) -GETTER(Map, Map::Type, type) GETTER(Map, int, width) GETTER(Map, int, height) CHECK(Map, QString&, name) -CHECK(Map, Type, type) CHECK_BOUNDS(Map, int, width, 1, INT_MAX) CHECK_BOUNDS(Map, int, height, 1, INT_MAX) @@ -169,7 +161,6 @@ Map& Map::operator=(const Map& rhs) return *this; clear(); COPY(name); - COPY(type); COPY(width); COPY(height); COPY_SUB(MapEffect, effects); |