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);
|
1907
|
39 |
HWTeam();
|
184
|
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;
|
1659
|
48 |
QString Voicepack;
|
1683
|
49 |
QString Owner;
|
231
|
50 |
unsigned int difficulty;
|
184
|
51 |
BindAction binds[BINDS_NUMBER];
|
341
|
52 |
|
|
53 |
unsigned char numHedgehogs;
|
|
54 |
QColor teamColor;
|
184
|
55 |
|
|
56 |
bool LoadFromFile();
|
|
57 |
bool SaveToFile();
|
|
58 |
void SetToPage(HWForm * hwform);
|
|
59 |
void GetFromPage(HWForm * hwform);
|
341
|
60 |
QStringList TeamGameConfig(quint32 InitHealth) const;
|
184
|
61 |
|
|
62 |
bool operator==(const HWTeam& t1) const;
|
|
63 |
bool operator<(const HWTeam& t1) const;
|
245
|
64 |
private:
|
1325
|
65 |
bool m_isNetTeam;
|
245
|
66 |
QString OldTeamName;
|
1840
|
67 |
|
184
|
68 |
};
|
|
69 |
|
|
70 |
#endif
|