equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Hedgewars, a free turn based strategy game |
2 * Hedgewars, a free turn based strategy game |
3 * Copyright (c) 2006-2007 Igor Ulyanov <iulyanov@gmail.com> |
3 * Copyright (c) 2012 Andrey Korotaev <unC0Rr@gmail.com> |
4 * Copyright (c) 2007-2012 Andrey Korotaev <unC0Rr@gmail.com> |
|
5 * |
4 * |
6 * 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 |
7 * 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 |
8 * the Free Software Foundation; version 2 of the License |
7 * the Free Software Foundation; version 2 of the License |
9 * |
8 * |
79 */ |
78 */ |
80 int randomMap(MapType type) const; |
79 int randomMap(MapType type) const; |
81 |
80 |
82 |
81 |
83 public slots: |
82 public slots: |
84 /// reloads the maps using the DataManager |
83 /// Reloads the maps using the DataManager. |
85 void loadMaps(); |
84 void loadMaps(); |
86 |
85 |
87 |
86 |
88 private: |
87 private: |
89 ///< start-index and map count for each map-type |
88 /// start-index and map count for each map-type. |
90 QMap<MapType, QPair<int,int> > typeLoc; |
89 QMap<MapType, QPair<int,int> > typeLoc; |
91 |
90 |
92 /** |
91 /** |
93 * @brief Creates a QStandardItem, that holds the map info and item appearance. |
92 * @brief Creates a QStandardItem, that holds the map info and item appearance. |
94 * The used role for the data is Qt::UserRole + 1. |
93 * The used role for the data is Qt::UserRole + 1. |