author | smxx |
Sun, 07 Mar 2010 21:27:06 +0000 | |
changeset 2966 | fab0d8b04bb9 |
parent 2948 | 3f21a9dc93d0 |
child 3159 | e5eff81d7635 |
permissions | -rw-r--r-- |
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 |
{ |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
36 |
public: |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
37 |
HWTeam(const QString & teamname); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
38 |
HWTeam(const QStringList& strLst); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
39 |
HWTeam(); |
184 | 40 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
41 |
bool isNetTeam() const; |
352 | 42 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
43 |
QString TeamName; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
44 |
QString HHName[8]; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
45 |
QString HHHat[8]; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
46 |
QString Grave; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
47 |
QString Fort; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
48 |
QString Flag; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
49 |
QString Voicepack; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
50 |
QString Owner; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
51 |
unsigned int difficulty; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
52 |
BindAction binds[BINDS_NUMBER]; |
341 | 53 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
54 |
unsigned char numHedgehogs; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
55 |
QColor teamColor; |
184 | 56 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
57 |
bool LoadFromFile(); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
58 |
bool SaveToFile(); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
59 |
void SetToPage(HWForm * hwform); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
60 |
void GetFromPage(HWForm * hwform); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
61 |
QStringList TeamGameConfig(quint32 InitHealth) const; |
184 | 62 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
63 |
bool operator==(const HWTeam& t1) const; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
64 |
bool operator<(const HWTeam& t1) const; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
65 |
private: |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
66 |
bool m_isNetTeam; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
67 |
QString OldTeamName; |
1840 | 68 |
|
184 | 69 |
}; |
70 |
||
71 |
#endif |