author | unc0rr |
Thu, 10 Sep 2009 12:16:11 +0000 | |
changeset 2369 | c3eb11f1ab3a |
parent 2177 | c045698e044f |
child 2370 | 2ff8fce5e06f |
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}"); |
|
907 | 23 |
QString * cVersionString = new QString("${HEDGEWARS_VERSION}"); |
579 | 24 |
|
25 |
QDir * bindir = new QDir("${HEDGEWARS_BINDIR}"); |
|
26 |
QDir * cfgdir = new QDir(); |
|
27 |
QDir * datadir = new QDir(); |
|
28 |
||
29 |
QStringList * Themes; |
|
1210 | 30 |
QStringList * mapList; |
607 | 31 |
|
2369
c3eb11f1ab3a
Implement probability editor for weapon schemes (engine doesn't support that yet)
unc0rr
parents:
2177
diff
changeset
|
32 |
QString * cDefaultAmmoStore = new QString( |
c3eb11f1ab3a
Implement probability editor for weapon schemes (engine doesn't support that yet)
unc0rr
parents:
2177
diff
changeset
|
33 |
"939192942219912103223511100120100000021" |
c3eb11f1ab3a
Implement probability editor for weapon schemes (engine doesn't support that yet)
unc0rr
parents:
2177
diff
changeset
|
34 |
"040400044140044464564444477477611121111" |
c3eb11f1ab3a
Implement probability editor for weapon schemes (engine doesn't support that yet)
unc0rr
parents:
2177
diff
changeset
|
35 |
); |
c3eb11f1ab3a
Implement probability editor for weapon schemes (engine doesn't support that yet)
unc0rr
parents:
2177
diff
changeset
|
36 |
int cAmmoNumber = cDefaultAmmoStore->size() / 2; |
c3eb11f1ab3a
Implement probability editor for weapon schemes (engine doesn't support that yet)
unc0rr
parents:
2177
diff
changeset
|
37 |
|
1967 | 38 |
QList< QPair<QString, QString> > cDefaultAmmos = |
39 |
QList< QPair<QString, QString> >() |
|
40 |
<< qMakePair(QString("Default"), *cDefaultAmmoStore) |
|
2177
c045698e044f
Initial attempt at jetpack. Pluses, more like lunar lander (takes fall damage). Minuses, can't seem to cancel it or use alt weapon
nemo
parents:
2093
diff
changeset
|
41 |
<< qMakePair(QString("Crazy"), QString("999999999999999999299999999999999929999")) |
c045698e044f
Initial attempt at jetpack. Pluses, more like lunar lander (takes fall damage). Minuses, can't seem to cancel it or use alt weapon
nemo
parents:
2093
diff
changeset
|
42 |
<< qMakePair(QString("Pro mode"), QString("909000900000000000000900000000000000000")) |
c045698e044f
Initial attempt at jetpack. Pluses, more like lunar lander (takes fall damage). Minuses, can't seem to cancel it or use alt weapon
nemo
parents:
2093
diff
changeset
|
43 |
<< qMakePair(QString("Shoppa"), QString("000000990000000000000000000000000000000")) |
c045698e044f
Initial attempt at jetpack. Pluses, more like lunar lander (takes fall damage). Minuses, can't seem to cancel it or use alt weapon
nemo
parents:
2093
diff
changeset
|
44 |
<< qMakePair(QString("Basketball"),QString("000000900000090000000000000000000000000")) |
2369
c3eb11f1ab3a
Implement probability editor for weapon schemes (engine doesn't support that yet)
unc0rr
parents:
2177
diff
changeset
|
45 |
<< qMakePair(QString("Minefield"), QString("000000990009000000030000000000000000000")) |
1967 | 46 |
; |
616 | 47 |
|
1514 | 48 |
QColor * color1 = new QColor(221, 0, 0); |
49 |
QColor * color2 = new QColor( 67, 118, 233); |
|
50 |
QColor * color3 = new QColor( 62, 147, 33); |
|
51 |
QColor * color4 = new QColor(162, 61, 187); |
|
52 |
QColor * color5 = new QColor(255, 147, 41); |
|
53 |
QColor * color6 = new QColor(115, 115, 115); |
|
654 | 54 |
|
55 |
QString * netHost = new QString(); |
|
56 |
quint16 netPort = 46631; |
|
1415
6fbfee0e113a
Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents:
1263
diff
changeset
|
57 |
|
6fbfee0e113a
Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents:
1263
diff
changeset
|
58 |
bool haveServer = ${HAVE_NETSERVER}; |