author | nemo |
Sat, 27 Mar 2010 14:49:04 +0000 | |
changeset 3108 | 2d666993854a |
parent 3074 | 271cfcb2bcda |
child 3236 | 4ab3917d7d44 |
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( |
3070 | 34 |
"93919294221991210322351110012010000002111" |
35 |
"04040004414004446456444447747761122111444" |
|
36 |
"00000000000002055000000400070040000000002" |
|
37 |
"13111103121111111231141111111111111112111" |
|
2369
c3eb11f1ab3a
Implement probability editor for weapon schemes (engine doesn't support that yet)
unc0rr
parents:
2177
diff
changeset
|
38 |
); |
2860
13a53315ae18
Awesome patch from TheException - adds editing of weapon delay and crate count. Tiy might want to tweak the crate graphic, could make be smaller or less overlappy.
nemo
parents:
2473
diff
changeset
|
39 |
int cAmmoNumber = cDefaultAmmoStore->size() / 4; |
2369
c3eb11f1ab3a
Implement probability editor for weapon schemes (engine doesn't support that yet)
unc0rr
parents:
2177
diff
changeset
|
40 |
|
1967 | 41 |
QList< QPair<QString, QString> > cDefaultAmmos = |
42 |
QList< QPair<QString, QString> >() |
|
43 |
<< qMakePair(QString("Default"), *cDefaultAmmoStore) |
|
2370 | 44 |
<< qMakePair(QString("Crazy"), QString( |
3070 | 45 |
"99999999999999999929999999999999992999999" |
46 |
"11111101111111111111111111111111111111111" |
|
47 |
"00000000000000000000000000000000000000000" |
|
48 |
"13111103121111111231141111111111111112111")) |
|
2370 | 49 |
<< qMakePair(QString("Pro mode"), QString( |
3070 | 50 |
"90900090000000000000090000000000000000000" |
51 |
"00000000000000000000000000000000000000000" |
|
52 |
"00000000000002055000000400070040000000002" |
|
53 |
"11111111111111111111111111111111111111111")) |
|
2370 | 54 |
<< qMakePair(QString("Shoppa"), QString( |
3070 | 55 |
"00000099000000000000000000000000000000000" |
56 |
"44444100442444022101121212224220000000020" |
|
57 |
"00000000000000000000000000000000000000000" |
|
58 |
"11111111111111111111111111111111111111111")) |
|
2370 | 59 |
<< qMakePair(QString("Basketball"),QString( |
3070 | 60 |
"00000090000009000000000000000000000000000" |
61 |
"00000000000000000000000000000000000000000" |
|
62 |
"00000000000000055000000400070040000000002" |
|
3066
5c0efa437728
Enable birdy. Has egg bombing. Eggs should possibly have a dX component. No poison yet, no egg sprite.
nemo
parents:
2861
diff
changeset
|
63 |
"11111111111111111111111111111111111111111")) |
2370 | 64 |
<< qMakePair(QString("Minefield"), QString( |
3070 | 65 |
"00000099000900000003000000000000000000000" |
66 |
"00000000000000000000000000000000000000000" |
|
67 |
"00000000000002055000000400070040000000002" |
|
3066
5c0efa437728
Enable birdy. Has egg bombing. Eggs should possibly have a dX component. No poison yet, no egg sprite.
nemo
parents:
2861
diff
changeset
|
68 |
"11111111111111111111111111111111111111111")) |
1967 | 69 |
; |
616 | 70 |
|
1514 | 71 |
QColor * color1 = new QColor(221, 0, 0); |
72 |
QColor * color2 = new QColor( 67, 118, 233); |
|
73 |
QColor * color3 = new QColor( 62, 147, 33); |
|
74 |
QColor * color4 = new QColor(162, 61, 187); |
|
75 |
QColor * color5 = new QColor(255, 147, 41); |
|
76 |
QColor * color6 = new QColor(115, 115, 115); |
|
654 | 77 |
|
78 |
QString * netHost = new QString(); |
|
79 |
quint16 netPort = 46631; |
|
1415
6fbfee0e113a
Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents:
1263
diff
changeset
|
80 |
|
6fbfee0e113a
Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents:
1263
diff
changeset
|
81 |
bool haveServer = ${HAVE_NETSERVER}; |
3074 | 82 |
bool isDevBuild = ${HW_DEV}; |