184
|
1 |
/*
|
1066
|
2 |
* Hedgewars, a free turn based strategy game
|
184
|
3 |
* Copyright (c) 2005 Andrey Korotaev <unC0Rr@gmail.com>
|
486
|
4 |
* Copyright (c) 2007 Igor Ulyanov <iulyanov@gmail.com>
|
184
|
5 |
*
|
|
6 |
* 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
|
|
8 |
* the Free Software Foundation; version 2 of the License
|
|
9 |
*
|
|
10 |
* This program is distributed in the hope that it will be useful,
|
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13 |
* GNU General Public License for more details.
|
|
14 |
*
|
|
15 |
* You should have received a copy of the GNU General Public License
|
|
16 |
* along with this program; if not, write to the Free Software
|
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
|
18 |
*/
|
|
19 |
|
|
20 |
#ifndef TEAM_H
|
|
21 |
#define TEAM_H
|
|
22 |
|
207
|
23 |
#include <QColor>
|
184
|
24 |
#include <QString>
|
|
25 |
#include "binds.h"
|
|
26 |
|
|
27 |
class HWForm;
|
|
28 |
class GameUIConfig;
|
|
29 |
|
314
|
30 |
class HWTeamConstructException
|
|
31 |
{
|
|
32 |
};
|
|
33 |
|
184
|
34 |
class HWTeam
|
|
35 |
{
|
|
36 |
public:
|
1325
|
37 |
HWTeam(const QString & teamname);
|
314
|
38 |
HWTeam(const QStringList& strLst);
|
184
|
39 |
HWTeam(quint8 num);
|
|
40 |
|
352
|
41 |
bool isNetTeam() const;
|
|
42 |
|
184
|
43 |
QString TeamName;
|
|
44 |
QString HHName[8];
|
1240
|
45 |
QString HHHat[8];
|
|
46 |
QString Grave;
|
184
|
47 |
QString Fort;
|
231
|
48 |
unsigned int difficulty;
|
184
|
49 |
BindAction binds[BINDS_NUMBER];
|
341
|
50 |
|
|
51 |
unsigned char numHedgehogs;
|
|
52 |
QColor teamColor;
|
184
|
53 |
|
|
54 |
bool LoadFromFile();
|
|
55 |
bool SaveToFile();
|
|
56 |
void SetToPage(HWForm * hwform);
|
|
57 |
void GetFromPage(HWForm * hwform);
|
341
|
58 |
QStringList TeamGameConfig(quint32 InitHealth) const;
|
184
|
59 |
|
|
60 |
bool operator==(const HWTeam& t1) const;
|
|
61 |
bool operator<(const HWTeam& t1) const;
|
245
|
62 |
private:
|
1325
|
63 |
bool m_isNetTeam;
|
245
|
64 |
QString OldTeamName;
|
184
|
65 |
};
|
|
66 |
|
|
67 |
#endif
|