QTfrontend/hwconsts.cpp.in
author unc0rr
Tue, 01 Sep 2009 17:46:13 +0000
changeset 2340 3b35fd5f67c7
parent 2177 c045698e044f
child 2369 c3eb11f1ab3a
permissions -rw-r--r--
Fix a bug when you are unable to do anything in lobby when room is closed during round
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
579
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
     1
/*
1066
1f1b3686a2b0 Update copyright headers a bit
unc0rr
parents: 1021
diff changeset
     2
 * Hedgewars, a free turn based strategy game
1967
213d368a002f Predefine some ammo schemes
unc0rr
parents: 1966
diff changeset
     3
 * Copyright (c) 2007-2009 Andrey Korotaev <unC0Rr@gmail.com>
579
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
     4
 *
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
     7
 * the Free Software Foundation; version 2 of the License
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
     8
 *
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
    12
 * GNU General Public License for more details.
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
    13
 *
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
    15
 * along with this program; if not, write to the Free Software
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
    16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
    17
 */
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
    18
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
    19
#include "hwconsts.h"
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
    20
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
    21
QString * cProtoVer = new QString("${HEDGEWARS_PROTO_VER}");
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
    22
QString * cDataDir = new QString("${HEDGEWARS_DATADIR}");
907
a5b0b93a39c8 Use constant generated by cmake for version string
unc0rr
parents: 654
diff changeset
    23
QString * cVersionString = new QString("${HEDGEWARS_VERSION}");
579
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
    24
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
    25
QDir * bindir = new QDir("${HEDGEWARS_BINDIR}");
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
    26
QDir * cfgdir = new QDir();
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
    27
QDir * datadir = new QDir();
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
    28
94db15de0392 - Some changes to make build process clear
unc0rr
parents:
diff changeset
    29
QStringList * Themes;
1210
bfed1b89bc85 Add themes list to map selection widget
unc0rr
parents: 1088
diff changeset
    30
QStringList * mapList;
607
26a91a9f5514 Now trainings can have custom ammostore
unc0rr
parents: 579
diff changeset
    31
2177
c045698e044f Initial attempt at jetpack. Pluses, more like lunar lander (takes fall damage). Minuses, can't seem to cancel it or use alt weapon
nemo
parents: 2093
diff changeset
    32
QString * cDefaultAmmoStore = new QString("939192942219912103223511100120100000021");
1967
213d368a002f Predefine some ammo schemes
unc0rr
parents: 1966
diff changeset
    33
QList< QPair<QString, QString> > cDefaultAmmos =
213d368a002f Predefine some ammo schemes
unc0rr
parents: 1966
diff changeset
    34
	QList< QPair<QString, QString> >()
213d368a002f Predefine some ammo schemes
unc0rr
parents: 1966
diff changeset
    35
	<< qMakePair(QString("Default"), *cDefaultAmmoStore)
2177
c045698e044f Initial attempt at jetpack. Pluses, more like lunar lander (takes fall damage). Minuses, can't seem to cancel it or use alt weapon
nemo
parents: 2093
diff changeset
    36
	<< qMakePair(QString("Crazy"),     QString("999999999999999999299999999999999929999"))
c045698e044f Initial attempt at jetpack. Pluses, more like lunar lander (takes fall damage). Minuses, can't seem to cancel it or use alt weapon
nemo
parents: 2093
diff changeset
    37
	<< qMakePair(QString("Pro mode"),  QString("909000900000000000000900000000000000000"))
c045698e044f Initial attempt at jetpack. Pluses, more like lunar lander (takes fall damage). Minuses, can't seem to cancel it or use alt weapon
nemo
parents: 2093
diff changeset
    38
	<< qMakePair(QString("Shoppa"),    QString("000000990000000000000000000000000000000"))
c045698e044f Initial attempt at jetpack. Pluses, more like lunar lander (takes fall damage). Minuses, can't seem to cancel it or use alt weapon
nemo
parents: 2093
diff changeset
    39
	<< qMakePair(QString("Basketball"),QString("000000900000090000000000000000000000000"))
c045698e044f Initial attempt at jetpack. Pluses, more like lunar lander (takes fall damage). Minuses, can't seem to cancel it or use alt weapon
nemo
parents: 2093
diff changeset
    40
	<< qMakePair(QString("Minefield"),QString("000000990009000000030000000000000000000"))
1967
213d368a002f Predefine some ammo schemes
unc0rr
parents: 1966
diff changeset
    41
	;
616
00928b3cf505 Use same team colors everywhere
unc0rr
parents: 608
diff changeset
    42
1514
c4170faf7b0a oops, remove leftovers
unc0rr
parents: 1507
diff changeset
    43
QColor * color1 = new QColor(221,   0,   0);
c4170faf7b0a oops, remove leftovers
unc0rr
parents: 1507
diff changeset
    44
QColor * color2 = new QColor( 67, 118, 233);
c4170faf7b0a oops, remove leftovers
unc0rr
parents: 1507
diff changeset
    45
QColor * color3 = new QColor( 62, 147,  33);
c4170faf7b0a oops, remove leftovers
unc0rr
parents: 1507
diff changeset
    46
QColor * color4 = new QColor(162,  61, 187);
c4170faf7b0a oops, remove leftovers
unc0rr
parents: 1507
diff changeset
    47
QColor * color5 = new QColor(255, 147,  41);
c4170faf7b0a oops, remove leftovers
unc0rr
parents: 1507
diff changeset
    48
QColor * color6 = new QColor(115, 115, 115);
654
1019b8fa8638 Finish asking host/port dialog implementation
unc0rr
parents: 616
diff changeset
    49
1019b8fa8638 Finish asking host/port dialog implementation
unc0rr
parents: 616
diff changeset
    50
QString * netHost = new QString();
1019b8fa8638 Finish asking host/port dialog implementation
unc0rr
parents: 616
diff changeset
    51
quint16 netPort = 46631;
1415
6fbfee0e113a Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents: 1263
diff changeset
    52
6fbfee0e113a Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents: 1263
diff changeset
    53
bool haveServer = ${HAVE_NETSERVER};