44 class MapModel : public QStandardItemModel |
44 class MapModel : public QStandardItemModel |
45 { |
45 { |
46 Q_OBJECT |
46 Q_OBJECT |
47 |
47 |
48 public: |
48 public: |
49 enum MapType { |
49 enum MapType { |
50 Invalid, |
50 Invalid, |
51 GeneratedMap, |
51 GeneratedMap, |
52 GeneratedMaze, |
52 GeneratedMaze, |
53 GeneratedPerlin, |
53 GeneratedPerlin, |
54 HandDrawnMap, |
54 HandDrawnMap, |
55 MissionMap, |
55 MissionMap, |
56 StaticMap, |
56 StaticMap, |
57 FortsMap |
57 FortsMap, |
58 }; |
58 WfcMap |
|
59 }; |
59 |
60 |
60 /// a struct for holding the attributes of a map. |
61 /// a struct for holding the attributes of a map. |
61 struct MapInfo |
62 struct MapInfo { |
62 { |
63 MapType type; ///< The map-type |
63 MapType type; ///< The map-type |
64 QString name; ///< The internal name. |
64 QString name; ///< The internal name. |
65 QString theme; ///< The theme to be used. (can be empty) |
65 QString theme; ///< The theme to be used. (can be empty) |
66 quint32 limit; ///< The maximum allowed number of hedgehogs. |
66 quint32 limit; ///< The maximum allowed number of hedgehogs. |
67 QString scheme; ///< Default scheme name or "locked", for mission-maps. |
67 QString scheme; ///< Default scheme name or "locked", for mission-maps. |
68 QString |
68 QString weapons; ///< Default weaponset name or "locked", for missions-maps. |
69 weapons; ///< Default weaponset name or "locked", for missions-maps. |
69 QString desc; ///< The brief 1-2 sentence description of the mission, for mission-maps. |
70 QString desc; ///< The brief 1-2 sentence description of the mission, |
70 bool dlc; ///< True if this map was not packaged with the game |
71 ///< for mission-maps. |
|
72 bool dlc; ///< True if this map was not packaged with the game |
71 }; |
73 }; |
72 |
74 |
73 MapModel(MapType maptype, QObject *parent = 0); |
75 MapModel(MapType maptype, QObject *parent = 0); |
74 |
76 |
75 /** |
77 /** |