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 |
|
|
29 |
class HWTeam
|
|
30 |
{
|
|
31 |
public:
|
|
32 |
HWTeam(const QString & teamname);
|
|
33 |
HWTeam(quint8 num);
|
|
34 |
|
|
35 |
QString TeamName;
|
|
36 |
QString HHName[8];
|
|
37 |
QString Grave;
|
|
38 |
QString Fort;
|
231
|
39 |
unsigned int difficulty;
|
184
|
40 |
BindAction binds[BINDS_NUMBER];
|
|
41 |
|
|
42 |
bool LoadFromFile();
|
|
43 |
bool SaveToFile();
|
|
44 |
void SetToPage(HWForm * hwform);
|
|
45 |
void GetFromPage(HWForm * hwform);
|
239
|
46 |
QStringList HWTeam::TeamGameConfig(quint32 color, int hedgehogs) const;
|
184
|
47 |
|
|
48 |
bool operator==(const HWTeam& t1) const;
|
|
49 |
bool operator<(const HWTeam& t1) const;
|
|
50 |
};
|
|
51 |
|
207
|
52 |
class HWTeamTempParams
|
|
53 |
{
|
|
54 |
public:
|
|
55 |
unsigned char numHedgehogs;
|
|
56 |
QColor teamColor;
|
|
57 |
};
|
|
58 |
|
184
|
59 |
#endif
|