author | smxx |
Sat, 03 Apr 2010 08:46:01 +0000 | |
changeset 3282 | 9ca28cef559a |
parent 3236 | 4ab3917d7d44 |
child 3344 | b18a166e6ca4 |
permissions | -rw-r--r-- |
184 | 1 |
/* |
1066 | 2 |
* Hedgewars, a free turn based strategy game |
3236
4ab3917d7d44
Update (c) lines to 2010 as unc0rr requested - they all had varying values so I just took the first year mentioned, then tacked on -2010
nemo
parents:
3159
diff
changeset
|
3 |
* Copyright (c) 2005-2010 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(); |
3159 | 58 |
bool DeleteFile(); |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
59 |
bool SaveToFile(); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
60 |
void SetToPage(HWForm * hwform); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
61 |
void GetFromPage(HWForm * hwform); |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
62 |
QStringList TeamGameConfig(quint32 InitHealth) const; |
184 | 63 |
|
2948
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 |
bool operator<(const HWTeam& t1) const; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
66 |
private: |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
67 |
bool m_isNetTeam; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2747
diff
changeset
|
68 |
QString OldTeamName; |
1840 | 69 |
|
184 | 70 |
}; |
71 |
||
72 |
#endif |