author | koda |
Fri, 05 Feb 2010 00:43:56 +0000 | |
changeset 2754 | ad4f81fbfb76 |
parent 2473 | b188194432f5 |
child 2860 | 13a53315ae18 |
permissions | -rw-r--r-- |
579 | 1 |
/* |
1066 | 2 |
* Hedgewars, a free turn based strategy game |
1967 | 3 |
* Copyright (c) 2007-2009 Andrey Korotaev <unC0Rr@gmail.com> |
579 | 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 |
#include "hwconsts.h" |
|
20 |
||
21 |
QString * cProtoVer = new QString("${HEDGEWARS_PROTO_VER}"); |
|
22 |
QString * cDataDir = new QString("${HEDGEWARS_DATADIR}"); |
|
2428 | 23 |
QString * cConfigDir = new QString(""); |
907 | 24 |
QString * cVersionString = new QString("${HEDGEWARS_VERSION}"); |
579 | 25 |
|
26 |
QDir * bindir = new QDir("${HEDGEWARS_BINDIR}"); |
|
27 |
QDir * cfgdir = new QDir(); |
|
28 |
QDir * datadir = new QDir(); |
|
29 |
||
30 |
QStringList * Themes; |
|
1210 | 31 |
QStringList * mapList; |
607 | 32 |
|
2369
c3eb11f1ab3a
Implement probability editor for weapon schemes (engine doesn't support that yet)
unc0rr
parents:
2177
diff
changeset
|
33 |
QString * cDefaultAmmoStore = new QString( |
2457
ecf0c7e7995b
Initial molotov cocktail. Still needs graphics, tweaking of fire behaviour. Also changed probabilities for default weapon sets
nemo
parents:
2428
diff
changeset
|
34 |
"9391929422199121032235111001201000000211" |
2473
b188194432f5
Tweak probabilities for default set. jetpack, invuln, molotov cocktail
nemo
parents:
2461
diff
changeset
|
35 |
"0404000441400444645644444774776112211144" |
2369
c3eb11f1ab3a
Implement probability editor for weapon schemes (engine doesn't support that yet)
unc0rr
parents:
2177
diff
changeset
|
36 |
); |
c3eb11f1ab3a
Implement probability editor for weapon schemes (engine doesn't support that yet)
unc0rr
parents:
2177
diff
changeset
|
37 |
int cAmmoNumber = cDefaultAmmoStore->size() / 2; |
c3eb11f1ab3a
Implement probability editor for weapon schemes (engine doesn't support that yet)
unc0rr
parents:
2177
diff
changeset
|
38 |
|
1967 | 39 |
QList< QPair<QString, QString> > cDefaultAmmos = |
40 |
QList< QPair<QString, QString> >() |
|
41 |
<< qMakePair(QString("Default"), *cDefaultAmmoStore) |
|
2370 | 42 |
<< qMakePair(QString("Crazy"), QString( |
2457
ecf0c7e7995b
Initial molotov cocktail. Still needs graphics, tweaking of fire behaviour. Also changed probabilities for default weapon sets
nemo
parents:
2428
diff
changeset
|
43 |
"9999999999999999992999999999999999299999" |
ecf0c7e7995b
Initial molotov cocktail. Still needs graphics, tweaking of fire behaviour. Also changed probabilities for default weapon sets
nemo
parents:
2428
diff
changeset
|
44 |
"1111111111111111111111111111111111111111")) |
2370 | 45 |
<< qMakePair(QString("Pro mode"), QString( |
2457
ecf0c7e7995b
Initial molotov cocktail. Still needs graphics, tweaking of fire behaviour. Also changed probabilities for default weapon sets
nemo
parents:
2428
diff
changeset
|
46 |
"9090009000000000000009000000000000000000" |
ecf0c7e7995b
Initial molotov cocktail. Still needs graphics, tweaking of fire behaviour. Also changed probabilities for default weapon sets
nemo
parents:
2428
diff
changeset
|
47 |
"0000000000000000000000000000000000000000")) |
2370 | 48 |
<< qMakePair(QString("Shoppa"), QString( |
2457
ecf0c7e7995b
Initial molotov cocktail. Still needs graphics, tweaking of fire behaviour. Also changed probabilities for default weapon sets
nemo
parents:
2428
diff
changeset
|
49 |
"0000009900000000000000000000000000000000" |
2461 | 50 |
"4444410044244402210112121222422000000002")) |
2370 | 51 |
<< qMakePair(QString("Basketball"),QString( |
2457
ecf0c7e7995b
Initial molotov cocktail. Still needs graphics, tweaking of fire behaviour. Also changed probabilities for default weapon sets
nemo
parents:
2428
diff
changeset
|
52 |
"0000009000000900000000000000000000000000" |
ecf0c7e7995b
Initial molotov cocktail. Still needs graphics, tweaking of fire behaviour. Also changed probabilities for default weapon sets
nemo
parents:
2428
diff
changeset
|
53 |
"0000000000000000000000000000000000000000")) |
2370 | 54 |
<< qMakePair(QString("Minefield"), QString( |
2457
ecf0c7e7995b
Initial molotov cocktail. Still needs graphics, tweaking of fire behaviour. Also changed probabilities for default weapon sets
nemo
parents:
2428
diff
changeset
|
55 |
"0000009900090000000300000000000000000000" |
ecf0c7e7995b
Initial molotov cocktail. Still needs graphics, tweaking of fire behaviour. Also changed probabilities for default weapon sets
nemo
parents:
2428
diff
changeset
|
56 |
"0000000000000000000000000000000000000000")) |
1967 | 57 |
; |
616 | 58 |
|
1514 | 59 |
QColor * color1 = new QColor(221, 0, 0); |
60 |
QColor * color2 = new QColor( 67, 118, 233); |
|
61 |
QColor * color3 = new QColor( 62, 147, 33); |
|
62 |
QColor * color4 = new QColor(162, 61, 187); |
|
63 |
QColor * color5 = new QColor(255, 147, 41); |
|
64 |
QColor * color6 = new QColor(115, 115, 115); |
|
654 | 65 |
|
66 |
QString * netHost = new QString(); |
|
67 |
quint16 netPort = 46631; |
|
1415
6fbfee0e113a
Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents:
1263
diff
changeset
|
68 |
|
6fbfee0e113a
Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents:
1263
diff
changeset
|
69 |
bool haveServer = ${HAVE_NETSERVER}; |