diff -r bc7b6aa5d67a -r 7030706266df QTfrontend/campaign.h --- a/QTfrontend/campaign.h Sun Oct 28 15:18:26 2012 +0100 +++ b/QTfrontend/campaign.h Fri Dec 06 22:20:53 2019 +0100 @@ -1,6 +1,6 @@ /* * Hedgewars, a free turn based strategy game - * Copyright (c) 2004-2012 Andrey Korotaev + * Copyright (c) 2004-2015 Andrey Korotaev * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -13,30 +13,31 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef CAMPAIGN_H #define CAMPAIGN_H -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include -#include "netserver.h" -#include "game.h" -#include "ui_hwform.h" -#include "SDLInteraction.h" -#include "bgwidget.h" +class MissionInfo +{ + public: + QString name; + QString realName; + QString description; + QString script; + QString image; +}; -QStringList getCampMissionList(QString & campaign); -unsigned int getCampProgress(QString & teamName, QString & campName); -QString getCampaignScript(QString campaign, unsigned int mNum); + +QSettings* getCampTeamFile(QString & campaignName, QString & teamName); +QSettings* getCampMetaInfo(); +bool isCampWon(QString & campaignName, QString & teamName); +bool isCampMissionWon(QString & campaignName, int missionInList, QString & teamName); +QString getRealCampName(const QString & campaignName); +QList getCampMissionList(QString & campaignName, QString & teamName); #endif