author | koda |
Sat, 04 Dec 2010 08:52:57 +0100 | |
changeset 4454 | 42bfc1a70968 |
parent 4337 | 85e02b1a8e8f |
child 4513 | 1dd97c710f5a |
permissions | -rw-r--r-- |
579 | 1 |
/* |
1066 | 2 |
* Hedgewars, a free turn based strategy game |
3236
4ab3917d7d44
Update (c) lines to 2010 as unc0rr requested - they all had varying values so I just took the first year mentioned, then tacked on -2010
nemo
parents:
3074
diff
changeset
|
3 |
* Copyright (c) 2007-2010 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 |
|
3932 | 33 |
bool custom_config = false; |
34 |
bool custom_data = false; |
|
35 |
||
3865 | 36 |
int cMaxTeams = 6; |
37 |
||
2369
c3eb11f1ab3a
Implement probability editor for weapon schemes (engine doesn't support that yet)
unc0rr
parents:
2177
diff
changeset
|
38 |
QString * cDefaultAmmoStore = new QString( |
4246
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
39 |
"93919294221991210322351110012010000002111101010111" |
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
40 |
"04050405416006555465544647765766666661555101011154" |
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
41 |
"00000000000002055000000400070040000000002000000006" |
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
42 |
"13111103121111111231141111111111111112111111011111" |
3971 | 43 |
); |
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
|
44 |
int cAmmoNumber = cDefaultAmmoStore->size() / 4; |
2369
c3eb11f1ab3a
Implement probability editor for weapon schemes (engine doesn't support that yet)
unc0rr
parents:
2177
diff
changeset
|
45 |
|
1967 | 46 |
QList< QPair<QString, QString> > cDefaultAmmos = |
3971 | 47 |
QList< QPair<QString, QString> >() |
48 |
<< qMakePair(QString("Default"), *cDefaultAmmoStore) |
|
49 |
<< qMakePair(QString("Crazy"), QString( |
|
50 |
// TODO: Remove Piano's unlimited uses! |
|
4246
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
51 |
"99999999999999999929999999999999992999999999099999" |
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
52 |
"11111101111111111111111111111111111111111111011111" |
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
53 |
"00000000000000000000000000000000000000000000000000" |
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
54 |
"13111103121111111231141111111111111112111101011111" |
3971 | 55 |
)) |
4237
ef9b201c97fe
by default selecting a game mode will select a weapon with the same name, and viceversa; toggable for every game
koda
parents:
4231
diff
changeset
|
56 |
<< qMakePair(QString("Pro Mode"), QString( |
4246
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
57 |
"90900090000000000000090000000000000000000000000000" |
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
58 |
"00000000000000000000000000000000000000000000000000" |
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
59 |
"00000000000002055000000400070040000000002000000000" |
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
60 |
"11111111111111111111111111111111111111111001011111" |
3971 | 61 |
)) |
62 |
<< qMakePair(QString("Shoppa"), QString( |
|
4246
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
63 |
"00000099000000000000000000000000000000000000000000" |
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
64 |
"44444100442444022101121212224220000000020004000100" |
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
65 |
"00000000000000000000000000000000000000000000000000" |
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
66 |
"11111111111111111111111111111111111111111011011111" |
3971 | 67 |
)) |
4130
f437909ac9d4
Replace the deprecated Basketball mode with Clean Slate mode which uses a few of the new scheme options
nemo
parents:
3971
diff
changeset
|
68 |
<< qMakePair(QString("Clean Slate"),QString( |
4246
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
69 |
"10100090000100000110000000000000000000000000000010" |
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
70 |
"04050405416006555465544647765766666661555101011154" |
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
71 |
"00000000000000000000000000000000000000000000000000" |
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
72 |
"13111103121111111231141111111111111112111111011111" |
3971 | 73 |
)) |
74 |
<< qMakePair(QString("Minefield"), QString( |
|
4246
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
75 |
"00000099000900000003000000000000000000000000000000" |
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
76 |
"00000000000000000000000000000000000000000000000000" |
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
77 |
"00000000000002055000000400070040000000002000000006" |
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
78 |
"11111111111111111111111111111111111111111111011111" |
4231 | 79 |
)) |
80 |
<< qMakePair(QString("Thinking with Portals"), QString( |
|
4246
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
81 |
"90000090020000000021000000000000001100000900000000" |
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
82 |
"04050405416006555465544647765766666661555101011154" |
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
83 |
"00000000000002055000000400070040000000002000000006" |
e5cb885492df
drillstrike! might require the drill patch to improve behavior
koda
parents:
4241
diff
changeset
|
84 |
"13111103121111111231141111111111111112111111011111" |
3971 | 85 |
)); |
616 | 86 |
|
3876 | 87 |
QColor *colors[] = { |
88 |
new QColor(221, 0, 0), // classic red |
|
4212
9cf7f962cc97
Darken blue, brighten cyan to make more distinguishable, replace gold with peach. Should hopefully resolve objections about colour distinguishability
nemo
parents:
4206
diff
changeset
|
89 |
new QColor( 51, 102, 217), // dark blue |
3876 | 90 |
new QColor( 62, 147, 33), // classic green |
91 |
new QColor(162, 61, 187), // classic purple |
|
4317 | 92 |
new QColor(255, 255, 0), // yellow |
3876 | 93 |
new QColor(115, 115, 115), // classic gray |
4212
9cf7f962cc97
Darken blue, brighten cyan to make more distinguishable, replace gold with peach. Should hopefully resolve objections about colour distinguishability
nemo
parents:
4206
diff
changeset
|
94 |
new QColor(0, 255, 255), // cyan |
9cf7f962cc97
Darken blue, brighten cyan to make more distinguishable, replace gold with peach. Should hopefully resolve objections about colour distinguishability
nemo
parents:
4206
diff
changeset
|
95 |
new QColor(255, 136, 136), // peach |
3876 | 96 |
// add new colors here |
97 |
0}; |
|
654 | 98 |
|
99 |
QString * netHost = new QString(); |
|
100 |
quint16 netPort = 46631; |
|
1415
6fbfee0e113a
Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents:
1263
diff
changeset
|
101 |
|
6fbfee0e113a
Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents:
1263
diff
changeset
|
102 |
bool haveServer = ${HAVE_NETSERVER}; |
3074 | 103 |
bool isDevBuild = ${HW_DEV}; |