author | unc0rr |
Sun, 21 Jan 2007 19:51:02 +0000 | |
changeset 351 | 29bc9c36ad5f |
parent 348 | c91b983de18f |
child 352 | 4665bfe25470 |
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: |
|
348
c91b983de18f
equal team names huge bug fixed for multiple clients
displacer
parents:
341
diff
changeset
|
36 |
HWTeam(const QString & teamname, bool isNet=false); |
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]; |
341 | 46 |
|
339
7535ab6c3820
Run game message added, team and config info provided for net game
displacer
parents:
319
diff
changeset
|
47 |
bool netTeam; |
341 | 48 |
unsigned char numHedgehogs; |
49 |
QColor teamColor; |
|
184 | 50 |
|
51 |
bool LoadFromFile(); |
|
52 |
bool SaveToFile(); |
|
53 |
void SetToPage(HWForm * hwform); |
|
54 |
void GetFromPage(HWForm * hwform); |
|
341 | 55 |
QStringList TeamGameConfig(quint32 InitHealth) const; |
184 | 56 |
|
57 |
bool operator==(const HWTeam& t1) const; |
|
58 |
bool operator<(const HWTeam& t1) const; |
|
245 | 59 |
private: |
60 |
QString OldTeamName; |
|
184 | 61 |
}; |
62 |
||
63 |
#endif |