QTfrontend/hwconsts.cpp.in
author smxx
Mon, 15 Mar 2010 11:53:32 +0000
changeset 2999 30c4d62cd0c3
parent 2861 76542612ca91
child 3066 5c0efa437728
permissions -rw-r--r--
Engine: * Fixed reading localized strings longer than 255 bytes * Fixed weapon tooltip to stay inside visible area in short ammo menus * Allow maps to use their own map.lua file outside training mode (needs multiplayer testing) * Added example script to Basketball map showing clan scores * Fixed Shotgun and Bazooka trainings * Removed basketball script example

/*
 * Hedgewars, a free turn based strategy game
 * Copyright (c) 2007-2009 Andrey Korotaev <unC0Rr@gmail.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 2 of the License
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
 */

#include "hwconsts.h"

QString * cProtoVer = new QString("${HEDGEWARS_PROTO_VER}");
QString * cDataDir = new QString("${HEDGEWARS_DATADIR}");
QString * cConfigDir = new QString("");
QString * cVersionString = new QString("${HEDGEWARS_VERSION}");

QDir * bindir = new QDir("${HEDGEWARS_BINDIR}");
QDir * cfgdir = new QDir();
QDir * datadir = new QDir();

QStringList * Themes;
QStringList * mapList;

QString * cDefaultAmmoStore = new QString(
		"9391929422199121032235111001201000000211"
		"0404000441400444645644444774776112211144"
		"0000000000000205500000040007004000000000"
		"1311111312111111123114111111111111111211"
		);
int cAmmoNumber = cDefaultAmmoStore->size() / 4;

QList< QPair<QString, QString> > cDefaultAmmos =
	QList< QPair<QString, QString> >()
	<< qMakePair(QString("Default"), *cDefaultAmmoStore)
	<< qMakePair(QString("Crazy"),     QString(
		"9999999999999999992999999999999999299999"
		"1111111111111111111111111111111111111111"
		"0000000000000000000000000000000000000000"
		"1311111312111111123114111111111111111211"))
	<< qMakePair(QString("Pro mode"),  QString(
		"9090009000000000000009000000000000000000"
		"0000000000000000000000000000000000000000"
		"0000000000000205500000040007004000000000"
		"1111111111111111111111111111111111111111"))
	<< qMakePair(QString("Shoppa"),    QString(
		"0000009900000000000000000000000000000000"
		"4444410044244402210112121222422000000002"
		"0000000000000000000000000000000000000000"
		"1111111111111111111111111111111111111111"))
	<< qMakePair(QString("Basketball"),QString(
		"0000009000000900000000000000000000000000"
		"0000000000000000000000000000000000000000"
		"0000000000000005500000040007004000000000"
		"1111111111111111111111111111111111111111"))
	<< qMakePair(QString("Minefield"), QString(
		"0000009900090000000300000000000000000000"
		"0000000000000000000000000000000000000000"
		"0000000000000205500000040007004000000000"
		"1111111111111111111111111111111111111111"))
	;

QColor * color1 = new QColor(221,   0,   0);
QColor * color2 = new QColor( 67, 118, 233);
QColor * color3 = new QColor( 62, 147,  33);
QColor * color4 = new QColor(162,  61, 187);
QColor * color5 = new QColor(255, 147,  41);
QColor * color6 = new QColor(115, 115, 115);

QString * netHost = new QString();
quint16 netPort = 46631;

bool haveServer = ${HAVE_NETSERVER};