QTfrontend/model/MapModel.h
branchsdl2transition
changeset 11342 ed5a6478e710
parent 11046 47a8c19ecb60
child 11749 ac58a063d26a
equal deleted inserted replaced
11340:31570b766315 11342:ed5a6478e710
     1 /*
     1 /*
     2  * Hedgewars, a free turn based strategy game
     2  * Hedgewars, a free turn based strategy game
     3  * Copyright (c) 2004-2013 Andrey Korotaev <unC0Rr@gmail.com>
     3  * Copyright (c) 2004-2015 Andrey Korotaev <unC0Rr@gmail.com>
     4  *
     4  *
     5  * This program is free software; you can redistribute it and/or modify
     5  * This program is free software; you can redistribute it and/or modify
     6  * it under the terms of the GNU General Public License as published by
     6  * it under the terms of the GNU General Public License as published by
     7  * the Free Software Foundation; version 2 of the License
     7  * the Free Software Foundation; version 2 of the License
     8  *
     8  *
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12  * GNU General Public License for more details.
    12  * GNU General Public License for more details.
    13  *
    13  *
    14  * You should have received a copy of the GNU General Public License
    14  * You should have received a copy of the GNU General Public License
    15  * along with this program; if not, write to the Free Software
    15  * along with this program; if not, write to the Free Software
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
    16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    17  */
    17  */
    18 
    18 
    19 /**
    19 /**
    20  * @file
    20  * @file
    21  * @brief MapModel class definition
    21  * @brief MapModel class definition
    47     public:
    47     public:
    48         enum MapType {
    48         enum MapType {
    49             Invalid,
    49             Invalid,
    50             GeneratedMap,
    50             GeneratedMap,
    51             GeneratedMaze,
    51             GeneratedMaze,
       
    52             GeneratedPerlin,
    52             HandDrawnMap,
    53             HandDrawnMap,
    53             MissionMap,
    54             MissionMap,
    54             StaticMap
    55             StaticMap
    55         };
    56         };
    56 
    57 
    96          * @return QStandardItem of map, or NULL if map not found
    97          * @return QStandardItem of map, or NULL if map not found
    97          */
    98          */
    98         QStandardItem * getMap(const QString & map);
    99         QStandardItem * getMap(const QString & map);
    99 
   100 
   100         // Static MapInfos for drawn and generated maps
   101         // Static MapInfos for drawn and generated maps
   101         static MapInfo MapInfoRandom, MapInfoMaze, MapInfoDrawn;
   102         static MapInfo MapInfoRandom, MapInfoMaze, MapInfoPerlin, MapInfoDrawn;
   102 
   103 
   103         /// Loads the maps
   104         /// Loads the maps
   104         bool loadMaps();
   105         bool loadMaps();
   105 
   106 
   106 
   107