1 /* |
1 /* |
2 * Hedgewars, a free turn based strategy game |
2 * Hedgewars, a free turn based strategy game |
3 * Copyright (c) 2004-2012 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 #ifndef CAMPAIGN_H |
19 #ifndef CAMPAIGN_H |
20 #define CAMPAIGN_H |
20 #define CAMPAIGN_H |
21 |
21 |
22 #include <QMainWindow> |
22 #include <QString> |
23 #include <QStack> |
23 #include <QSettings> |
24 #include <QTime> |
|
25 #include <QPointer> |
|
26 #include <QPropertyAnimation> |
|
27 #include <QUrl> |
|
28 #include <QNetworkReply> |
|
29 #include <QNetworkRequest> |
|
30 #include <QNetworkAccessManager> |
|
31 |
24 |
32 #include "netserver.h" |
25 class MissionInfo |
33 #include "game.h" |
26 { |
34 #include "ui_hwform.h" |
27 public: |
35 #include "SDLInteraction.h" |
28 QString name; |
36 #include "bgwidget.h" |
29 QString realName; |
|
30 QString description; |
|
31 QString script; |
|
32 QString image; |
|
33 }; |
37 |
34 |
38 QStringList getCampMissionList(QString & campaign); |
35 |
39 unsigned int getCampProgress(QString & teamName, QString & campName); |
36 QSettings* getCampTeamFile(QString & campaignName, QString & teamName); |
40 QString getCampaignScript(QString campaign, unsigned int mNum); |
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); |
41 |
42 |
42 #endif |
43 #endif |