author | nemo |
Wed, 22 Sep 2010 01:09:40 -0400 | |
changeset 3890 | e4b7b30232fd |
parent 3876 | 3dd031a8b395 |
child 3932 | 2fc211f60015 |
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 |
|
3865 | 33 |
int cMaxTeams = 6; |
34 |
||
2369
c3eb11f1ab3a
Implement probability editor for weapon schemes (engine doesn't support that yet)
unc0rr
parents:
2177
diff
changeset
|
35 |
QString * cDefaultAmmoStore = new QString( |
3819
ba2926231115
Disable sine gun in all weapon sets, slap a beta on the name and incomplete in description. This is to reassure sheepluva who fears his WIP making it prominently into a release.
nemo
parents:
3729
diff
changeset
|
36 |
"939192942219912103223511100120100000021111010101" |
ba2926231115
Disable sine gun in all weapon sets, slap a beta on the name and incomplete in description. This is to reassure sheepluva who fears his WIP making it prominently into a release.
nemo
parents:
3729
diff
changeset
|
37 |
"040504054160065554655446477657666666615551010111" |
3717 | 38 |
"000000000000020550000004000700400000000020000000" |
3819
ba2926231115
Disable sine gun in all weapon sets, slap a beta on the name and incomplete in description. This is to reassure sheepluva who fears his WIP making it prominently into a release.
nemo
parents:
3729
diff
changeset
|
39 |
"131111031211111112311411111111111111121111110111" |
2369
c3eb11f1ab3a
Implement probability editor for weapon schemes (engine doesn't support that yet)
unc0rr
parents:
2177
diff
changeset
|
40 |
); |
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
|
41 |
int cAmmoNumber = cDefaultAmmoStore->size() / 4; |
2369
c3eb11f1ab3a
Implement probability editor for weapon schemes (engine doesn't support that yet)
unc0rr
parents:
2177
diff
changeset
|
42 |
|
1967 | 43 |
QList< QPair<QString, QString> > cDefaultAmmos = |
44 |
QList< QPair<QString, QString> >() |
|
45 |
<< qMakePair(QString("Default"), *cDefaultAmmoStore) |
|
2370 | 46 |
<< qMakePair(QString("Crazy"), QString( |
3819
ba2926231115
Disable sine gun in all weapon sets, slap a beta on the name and incomplete in description. This is to reassure sheepluva who fears his WIP making it prominently into a release.
nemo
parents:
3729
diff
changeset
|
47 |
"999999999999999999299999999999999929999999990999" // TODO: Remove Piano's unlimited uses! |
ba2926231115
Disable sine gun in all weapon sets, slap a beta on the name and incomplete in description. This is to reassure sheepluva who fears his WIP making it prominently into a release.
nemo
parents:
3729
diff
changeset
|
48 |
"111111011111111111111111111111111111111111110111" |
3717 | 49 |
"000000000000000000000000000000000000000000000000" |
50 |
"131111031211111112311411111111111111121111010111")) |
|
2370 | 51 |
<< qMakePair(QString("Pro mode"), QString( |
3836
833c0f32e326
Change all use of curslot/idx to CurAmmoType to try and avoid some bugs with use of last weapon.
nemo
parents:
3819
diff
changeset
|
52 |
"909000900000000000000900000000000000000000000000" |
3717 | 53 |
"000000000000000000000000000000000000000000000000" |
54 |
"000000000000020550000004000700400000000020000000" |
|
3819
ba2926231115
Disable sine gun in all weapon sets, slap a beta on the name and incomplete in description. This is to reassure sheepluva who fears his WIP making it prominently into a release.
nemo
parents:
3729
diff
changeset
|
55 |
"111111111111111111111111111111111111111110010111")) |
2370 | 56 |
<< qMakePair(QString("Shoppa"), QString( |
3717 | 57 |
"000000990000000000000000000000000000000000000000" |
58 |
"444441004424440221011212122242200000000200040001" |
|
59 |
"000000000000000000000000000000000000000000000000" |
|
3819
ba2926231115
Disable sine gun in all weapon sets, slap a beta on the name and incomplete in description. This is to reassure sheepluva who fears his WIP making it prominently into a release.
nemo
parents:
3729
diff
changeset
|
60 |
"111111111111111111111111111111111111111110110111")) |
2370 | 61 |
<< qMakePair(QString("Basketball"),QString( |
3717 | 62 |
"000000900000090000000000000000000000000000000000" |
63 |
"000000000000000000000000000000000000000000000000" |
|
64 |
"000000000000000550000004000700400000000020000000" |
|
3819
ba2926231115
Disable sine gun in all weapon sets, slap a beta on the name and incomplete in description. This is to reassure sheepluva who fears his WIP making it prominently into a release.
nemo
parents:
3729
diff
changeset
|
65 |
"111111111111111111111111111111111111111111110111")) |
2370 | 66 |
<< qMakePair(QString("Minefield"), QString( |
3717 | 67 |
"000000990009000000030000000000000000000000000000" |
68 |
"000000000000000000000000000000000000000000000000" |
|
69 |
"000000000000020550000004000700400000000020000000" |
|
3819
ba2926231115
Disable sine gun in all weapon sets, slap a beta on the name and incomplete in description. This is to reassure sheepluva who fears his WIP making it prominently into a release.
nemo
parents:
3729
diff
changeset
|
70 |
"111111111111111111111111111111111111111111110111")) |
1967 | 71 |
; |
616 | 72 |
|
3876 | 73 |
QColor *colors[] = { |
74 |
new QColor(221, 0, 0), // classic red |
|
75 |
new QColor( 67, 118, 233), // classic blue |
|
76 |
new QColor( 62, 147, 33), // classic green |
|
77 |
new QColor(162, 61, 187), // classic purple |
|
78 |
new QColor(255, 147, 41), // classic orange |
|
79 |
new QColor(115, 115, 115), // classic gray |
|
80 |
new QColor(187, 162, 61), // gold |
|
81 |
new QColor( 61, 162, 187), // cyan |
|
82 |
// add new colors here |
|
83 |
0}; |
|
654 | 84 |
|
85 |
QString * netHost = new QString(); |
|
86 |
quint16 netPort = 46631; |
|
1415
6fbfee0e113a
Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents:
1263
diff
changeset
|
87 |
|
6fbfee0e113a
Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents:
1263
diff
changeset
|
88 |
bool haveServer = ${HAVE_NETSERVER}; |
3074 | 89 |
bool isDevBuild = ${HW_DEV}; |