author | nemo |
Mon, 01 Nov 2010 00:14:15 -0400 | |
changeset 4079 | f14faef5478a |
parent 3971 | 5c82ee165ed5 |
child 4130 | f437909ac9d4 |
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( |
3963
6090d2a2472e
New Weapon: Resurrector (TODO: ammo icon + sprites)
Tobias Neumann <mail@tobias-neumann.eu>
parents:
3932
diff
changeset
|
39 |
"9391929422199121032235111001201000000211110101011" |
6090d2a2472e
New Weapon: Resurrector (TODO: ammo icon + sprites)
Tobias Neumann <mail@tobias-neumann.eu>
parents:
3932
diff
changeset
|
40 |
"0405040541600655546554464776576666666155510101117" |
6090d2a2472e
New Weapon: Resurrector (TODO: ammo icon + sprites)
Tobias Neumann <mail@tobias-neumann.eu>
parents:
3932
diff
changeset
|
41 |
"0000000000000205500000040007004000000000200000000" |
6090d2a2472e
New Weapon: Resurrector (TODO: ammo icon + sprites)
Tobias Neumann <mail@tobias-neumann.eu>
parents:
3932
diff
changeset
|
42 |
"1311110312111111123114111111111111111211111101111" |
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! |
|
51 |
"9999999999999999992999999999999999299999999909999" |
|
3963
6090d2a2472e
New Weapon: Resurrector (TODO: ammo icon + sprites)
Tobias Neumann <mail@tobias-neumann.eu>
parents:
3932
diff
changeset
|
52 |
"1111110111111111111111111111111111111111111101111" |
6090d2a2472e
New Weapon: Resurrector (TODO: ammo icon + sprites)
Tobias Neumann <mail@tobias-neumann.eu>
parents:
3932
diff
changeset
|
53 |
"0000000000000000000000000000000000000000000000000" |
3971 | 54 |
"1311110312111111123114111111111111111211110101111" |
55 |
)) |
|
56 |
<< qMakePair(QString("Pro mode"), QString( |
|
3963
6090d2a2472e
New Weapon: Resurrector (TODO: ammo icon + sprites)
Tobias Neumann <mail@tobias-neumann.eu>
parents:
3932
diff
changeset
|
57 |
"9090009000000000000009000000000000000000000000000" |
6090d2a2472e
New Weapon: Resurrector (TODO: ammo icon + sprites)
Tobias Neumann <mail@tobias-neumann.eu>
parents:
3932
diff
changeset
|
58 |
"0000000000000000000000000000000000000000000000000" |
6090d2a2472e
New Weapon: Resurrector (TODO: ammo icon + sprites)
Tobias Neumann <mail@tobias-neumann.eu>
parents:
3932
diff
changeset
|
59 |
"0000000000000205500000040007004000000000200000000" |
3971 | 60 |
"1111111111111111111111111111111111111111100101111" |
61 |
)) |
|
62 |
<< qMakePair(QString("Shoppa"), QString( |
|
3963
6090d2a2472e
New Weapon: Resurrector (TODO: ammo icon + sprites)
Tobias Neumann <mail@tobias-neumann.eu>
parents:
3932
diff
changeset
|
63 |
"0000009900000000000000000000000000000000000000000" |
6090d2a2472e
New Weapon: Resurrector (TODO: ammo icon + sprites)
Tobias Neumann <mail@tobias-neumann.eu>
parents:
3932
diff
changeset
|
64 |
"4444410044244402210112121222422000000002000400010" |
6090d2a2472e
New Weapon: Resurrector (TODO: ammo icon + sprites)
Tobias Neumann <mail@tobias-neumann.eu>
parents:
3932
diff
changeset
|
65 |
"0000000000000000000000000000000000000000000000000" |
3971 | 66 |
"1111111111111111111111111111111111111111101101111" |
67 |
)) |
|
68 |
<< qMakePair(QString("Basketball"),QString( |
|
69 |
"0000009000000900000000000000000000000000000000000" |
|
70 |
"0000000000000000000000000000000000000000000000000" |
|
71 |
"0000000000000005500000040007004000000000200000000" |
|
72 |
"1111111111111111111111111111111111111111111101111" |
|
73 |
)) |
|
74 |
<< qMakePair(QString("Minefield"), QString( |
|
75 |
"0000009900090000000300000000000000000000000000000" |
|
76 |
"0000000000000000000000000000000000000000000000000" |
|
77 |
"0000000000000205500000040007004000000000200000000" |
|
78 |
"1111111111111111111111111111111111111111111101111" |
|
79 |
)); |
|
616 | 80 |
|
3876 | 81 |
QColor *colors[] = { |
82 |
new QColor(221, 0, 0), // classic red |
|
83 |
new QColor( 67, 118, 233), // classic blue |
|
84 |
new QColor( 62, 147, 33), // classic green |
|
85 |
new QColor(162, 61, 187), // classic purple |
|
86 |
new QColor(255, 147, 41), // classic orange |
|
87 |
new QColor(115, 115, 115), // classic gray |
|
88 |
new QColor(187, 162, 61), // gold |
|
89 |
new QColor( 61, 162, 187), // cyan |
|
90 |
// add new colors here |
|
91 |
0}; |
|
654 | 92 |
|
93 |
QString * netHost = new QString(); |
|
94 |
quint16 netPort = 46631; |
|
1415
6fbfee0e113a
Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents:
1263
diff
changeset
|
95 |
|
6fbfee0e113a
Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents:
1263
diff
changeset
|
96 |
bool haveServer = ${HAVE_NETSERVER}; |
3074 | 97 |
bool isDevBuild = ${HW_DEV}; |