1 /* 2 * Hedgewars, a free turn based strategy game 3 * Copyright (c) 2004-2015 Andrey Korotaev <unC0Rr@gmail.com> 4 * 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 7 * the Free Software Foundation; version 2 of the License 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 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 16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 */ 18 19 #ifndef CAMPAIGN_H 20 #define CAMPAIGN_H 21 22 #include <QString> 23 #include <QSettings> 24 25 class MissionInfo 26 { 27 public: 28 QString name; 29 QString realName; 30 QString description; 31 QString script; 32 QString image; 33 }; 34 35 36 QSettings* getCampTeamFile(QString & campaignName, QString & teamName); 37 QSettings* getCampMetaInfo(); 38 bool isCampWon(QString & campaignName, QString & teamName); 39 bool isCampMissionWon(QString & campaignName, int missionInList, QString & teamName); 40 QString getRealCampName(const QString & campaignName); 41 QList<MissionInfo> getCampMissionList(QString & campaignName, QString & teamName); 42 43 #endif 44