author | displacer |
Mon, 15 Jan 2007 18:45:07 +0000 | |
changeset 339 | 7535ab6c3820 |
parent 319 | 7f3bd9e31f18 |
child 341 | 184230eb4151 |
permissions | -rw-r--r-- |
184 | 1 |
/* |
2 |
* Hedgewars, a worms-like game |
|
3 |
* Copyright (c) 2005 Andrey Korotaev <unC0Rr@gmail.com> |
|
4 |
* |
|
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 |
|
7 |
* the Free Software Foundation; version 2 of the License |
|
8 |
* |
|
9 |
* This program is distributed in the hope that it will be useful, |
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
13 |
* |
|
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 |
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
17 |
*/ |
|
18 |
||
19 |
#ifndef TEAM_H |
|
20 |
#define TEAM_H |
|
21 |
||
207 | 22 |
#include <QColor> |
184 | 23 |
#include <QString> |
24 |
#include "binds.h" |
|
25 |
||
26 |
class HWForm; |
|
27 |
class GameUIConfig; |
|
28 |
||
314 | 29 |
class HWTeamConstructException |
30 |
{ |
|
31 |
}; |
|
32 |
||
184 | 33 |
class HWTeam |
34 |
{ |
|
35 |
public: |
|
36 |
HWTeam(const QString & teamname); |
|
314 | 37 |
HWTeam(const QStringList& strLst); |
184 | 38 |
HWTeam(quint8 num); |
39 |
||
40 |
QString TeamName; |
|
41 |
QString HHName[8]; |
|
42 |
QString Grave; |
|
43 |
QString Fort; |
|
231 | 44 |
unsigned int difficulty; |
184 | 45 |
BindAction binds[BINDS_NUMBER]; |
339
7535ab6c3820
Run game message added, team and config info provided for net game
displacer
parents:
319
diff
changeset
|
46 |
bool netTeam; |
184 | 47 |
|
48 |
bool LoadFromFile(); |
|
49 |
bool SaveToFile(); |
|
50 |
void SetToPage(HWForm * hwform); |
|
51 |
void GetFromPage(HWForm * hwform); |
|
319 | 52 |
QStringList TeamGameConfig(quint32 color, int hedgehogs, quint32 InitHealth, bool netTeam=false) const; |
184 | 53 |
|
54 |
bool operator==(const HWTeam& t1) const; |
|
55 |
bool operator<(const HWTeam& t1) const; |
|
245 | 56 |
private: |
57 |
QString OldTeamName; |
|
184 | 58 |
}; |
59 |
||
207 | 60 |
class HWTeamTempParams |
61 |
{ |
|
62 |
public: |
|
63 |
unsigned char numHedgehogs; |
|
64 |
QColor teamColor; |
|
65 |
}; |
|
66 |
||
184 | 67 |
#endif |