QTfrontend/model/MapModel.h
changeset 11749 ac58a063d26a
parent 11046 47a8c19ecb60
child 11762 6874644a2d00
equal deleted inserted replaced
11748:eefa04b23c3b 11749:ac58a063d26a
    50             GeneratedMap,
    50             GeneratedMap,
    51             GeneratedMaze,
    51             GeneratedMaze,
    52             GeneratedPerlin,
    52             GeneratedPerlin,
    53             HandDrawnMap,
    53             HandDrawnMap,
    54             MissionMap,
    54             MissionMap,
    55             StaticMap
    55             StaticMap,
       
    56             FortsMap
    56         };
    57         };
    57 
    58 
    58         /// a struct for holding the attributes of a map.
    59         /// a struct for holding the attributes of a map.
    59         struct MapInfo
    60         struct MapInfo
    60         {
    61         {
    97          * @return QStandardItem of map, or NULL if map not found
    98          * @return QStandardItem of map, or NULL if map not found
    98          */
    99          */
    99         QStandardItem * getMap(const QString & map);
   100         QStandardItem * getMap(const QString & map);
   100 
   101 
   101         // Static MapInfos for drawn and generated maps
   102         // Static MapInfos for drawn and generated maps
   102         static MapInfo MapInfoRandom, MapInfoMaze, MapInfoPerlin, MapInfoDrawn;
   103         static MapInfo MapInfoRandom, MapInfoMaze, MapInfoPerlin, MapInfoDrawn, MapInfoForts;
   103 
   104 
   104         /// Loads the maps
   105         /// Loads the maps
   105         bool loadMaps();
   106         bool loadMaps();
   106 
   107 
   107 
   108