author | koda |
Mon, 02 May 2011 02:07:28 +0200 | |
changeset 5196 | 04ce9666a692 |
parent 5049 | 96e51a62fb7f |
child 5200 | 7440fe992e73 |
permissions | -rw-r--r-- |
579 | 1 |
/* |
1066 | 2 |
* Hedgewars, a free turn based strategy game |
4976 | 3 |
* Copyright (c) 2007-2011 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(""); |
4903 | 24 |
QString * cVersionString = new QString("${HEDGEWARS_VERSION}${HGCHANGED}"); |
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; |
4513
1dd97c710f5a
added general scripts to multiplayer and added option for scripts to allow user set schemes or weapon sets.
Henek
parents:
4337
diff
changeset
|
32 |
QStringList * scriptList; |
607 | 33 |
|
3932 | 34 |
bool custom_config = false; |
35 |
bool custom_data = false; |
|
36 |
||
3865 | 37 |
int cMaxTeams = 6; |
4973
53411a26df7e
Add server version (which is separate from protocol version) and a check in frontend for a new enough server (currently only qWarning)
unc0rr
parents:
4903
diff
changeset
|
38 |
int cMinServerVersion = 0; |
3865 | 39 |
|
2369
c3eb11f1ab3a
Implement probability editor for weapon schemes (engine doesn't support that yet)
unc0rr
parents:
2177
diff
changeset
|
40 |
QString * cDefaultAmmoStore = new QString( |
5049 | 41 |
"939192942219912103223511100120100000021111010101111991" |
5024 | 42 |
"040504054160065554655446477657666666615551010111541111" |
5049 | 43 |
"000000000000020550000004000700400000000022000000060000" |
44 |
"131111031211111112311411111111111111121111110111111111" |
|
3971 | 45 |
); |
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
|
46 |
int cAmmoNumber = cDefaultAmmoStore->size() / 4; |
2369
c3eb11f1ab3a
Implement probability editor for weapon schemes (engine doesn't support that yet)
unc0rr
parents:
2177
diff
changeset
|
47 |
|
1967 | 48 |
QList< QPair<QString, QString> > cDefaultAmmos = |
3971 | 49 |
QList< QPair<QString, QString> >() |
50 |
<< qMakePair(QString("Default"), *cDefaultAmmoStore) |
|
51 |
<< qMakePair(QString("Crazy"), QString( |
|
52 |
// TODO: Remove Piano's unlimited uses! |
|
5024 | 53 |
"999999999999999999299999999999999929999999990999999229" |
54 |
"111111011111111111111111111111111111111111110111111111" |
|
55 |
"000000000000000000000000000000000000000000000000000000" |
|
56 |
"131111031211111112311411111111111111121111010111111111" |
|
3971 | 57 |
)) |
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
|
58 |
<< qMakePair(QString("Pro Mode"), QString( |
5024 | 59 |
"909000900000000000000900000000000000000000000000000000" |
60 |
"000000000000000000000000000000000000000000000000000000" |
|
61 |
"000000000000020550000004000700400000000020000000000000" |
|
62 |
"111111111111111111111111111111111111111110010111111111" |
|
3971 | 63 |
)) |
64 |
<< qMakePair(QString("Shoppa"), QString( |
|
5024 | 65 |
"000000990000000000000000000000000000000000000000000000" |
66 |
"444441004424440221011212122242200000000200040001001111" |
|
67 |
"000000000000000000000000000000000000000000000000000000" |
|
68 |
"111111111111111111111111111111111111111110110111111111" |
|
3971 | 69 |
)) |
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
|
70 |
<< qMakePair(QString("Clean Slate"),QString( |
5024 | 71 |
"101000900001000001100000000000000000000000000000100000" |
72 |
"040504054160065554655446477657666666615551010111541111" |
|
73 |
"000000000000000000000000000000000000000000000000000000" |
|
74 |
"131111031211111112311411111111111111121111110111111111" |
|
3971 | 75 |
)) |
76 |
<< qMakePair(QString("Minefield"), QString( |
|
5024 | 77 |
"000000990009000000030000000000000000000000000000000000" |
78 |
"000000000000000000000000000000000000000000000000000000" |
|
79 |
"000000000000020550000004000700400000000020000000060000" |
|
80 |
"111111111111111111111111111111111111111111110111111111" |
|
4231 | 81 |
)) |
82 |
<< qMakePair(QString("Thinking with Portals"), QString( |
|
5024 | 83 |
"900000900200000000210000000000000011000009000000000000" |
84 |
"040504054160065554655446477657666666615551010111541111" |
|
85 |
"000000000000020550000004000700400000000020000000060000" |
|
86 |
"131111031211111112311411111111111111121111110111111111" |
|
3971 | 87 |
)); |
616 | 88 |
|
3876 | 89 |
QColor *colors[] = { |
90 |
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
|
91 |
new QColor( 51, 102, 217), // dark blue |
3876 | 92 |
new QColor( 62, 147, 33), // classic green |
93 |
new QColor(162, 61, 187), // classic purple |
|
4317 | 94 |
new QColor(255, 255, 0), // yellow |
3876 | 95 |
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
|
96 |
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
|
97 |
new QColor(255, 136, 136), // peach |
3876 | 98 |
// add new colors here |
99 |
0}; |
|
654 | 100 |
|
101 |
QString * netHost = new QString(); |
|
102 |
quint16 netPort = 46631; |
|
1415
6fbfee0e113a
Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents:
1263
diff
changeset
|
103 |
|
6fbfee0e113a
Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents:
1263
diff
changeset
|
104 |
bool haveServer = ${HAVE_NETSERVER}; |
3074 | 105 |
bool isDevBuild = ${HW_DEV}; |