QTfrontend/hwconsts.cpp.in
author unc0rr
Mon, 12 Oct 2009 16:44:30 +0000
changeset 2428 6800f8aa0184
parent 2370 2ff8fce5e06f
child 2457 ecf0c7e7995b
permissions -rw-r--r--
Huge Smaxx patch with some fixes by me: - support for non power of two textures - modelview matrix calculation optimizations - health effect when picking up health crates or using vampirism - rc plane training time trial - fix visual gear drawing position (might require recheck) - gamepad support - reordered options in frontend - updated binding options (subcaptions, descriptions and localizable names) - cfg-dir parameter for frontend (allows teams/settings to sit on a usb flash drive for example) - icons for chatroom user list

/*
 * 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(
		"939192942219912103223511100120100000021"
		"040400044140044464564444477477611121111"
		);
int cAmmoNumber = cDefaultAmmoStore->size() / 2;

QList< QPair<QString, QString> > cDefaultAmmos =
	QList< QPair<QString, QString> >()
	<< qMakePair(QString("Default"), *cDefaultAmmoStore)
	<< qMakePair(QString("Crazy"),     QString(
		"999999999999999999299999999999999929999"
		"111111111111111111111111111111111111111"))
	<< qMakePair(QString("Pro mode"),  QString(
		"000000000000000000000000000000000000000"
		"000000000000000000000000000000000000000"))
	<< qMakePair(QString("Shoppa"),    QString(
		"000000990000000000000000000000000000000"
		"111111111111111111111111111111111111111")) //FIXME: dunno what should be here
	<< qMakePair(QString("Basketball"),QString(
		"000000900000090000000000000000000000000"
		"111111111111111111111111111111111111111")) //FIXME: dunno what should be here
	<< qMakePair(QString("Minefield"), QString(
		"000000990009000000030000000000000000000"
		"111111111111111111111111111111111111111")) //FIXME: dunno what should be here
	;

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};