QTfrontend/hwconsts.cpp.in
author unc0rr
Fri, 29 Apr 2011 17:11:08 +0400
changeset 5192 881c14f81d12
parent 5049 96e51a62fb7f
child 5200 7440fe992e73
permissions -rw-r--r--
Optimize hwFloat2Float a bit

/*
 * Hedgewars, a free turn based strategy game
 * Copyright (c) 2007-2011 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}${HGCHANGED}");

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

QStringList * Themes;
QStringList * mapList;
QStringList * scriptList;

bool custom_config = false;
bool custom_data = false;

int cMaxTeams = 6;
int cMinServerVersion = 0;

QString * cDefaultAmmoStore = new QString(
        "939192942219912103223511100120100000021111010101111991"
        "040504054160065554655446477657666666615551010111541111"
        "000000000000020550000004000700400000000022000000060000"
        "131111031211111112311411111111111111121111110111111111"
        );
int cAmmoNumber = cDefaultAmmoStore->size() / 4;

QList< QPair<QString, QString> > cDefaultAmmos =
        QList< QPair<QString, QString> >()
        << qMakePair(QString("Default"), *cDefaultAmmoStore)
        << qMakePair(QString("Crazy"),     QString(
        // TODO: Remove Piano's unlimited uses!
        "999999999999999999299999999999999929999999990999999229"
        "111111011111111111111111111111111111111111110111111111"
        "000000000000000000000000000000000000000000000000000000"
        "131111031211111112311411111111111111121111010111111111"
        ))
        << qMakePair(QString("Pro Mode"),  QString(
        "909000900000000000000900000000000000000000000000000000"
        "000000000000000000000000000000000000000000000000000000"
        "000000000000020550000004000700400000000020000000000000"
        "111111111111111111111111111111111111111110010111111111"
        ))
        << qMakePair(QString("Shoppa"),    QString(
        "000000990000000000000000000000000000000000000000000000"
        "444441004424440221011212122242200000000200040001001111"
        "000000000000000000000000000000000000000000000000000000"
        "111111111111111111111111111111111111111110110111111111"
        ))
        << qMakePair(QString("Clean Slate"),QString(
        "101000900001000001100000000000000000000000000000100000"
        "040504054160065554655446477657666666615551010111541111"
        "000000000000000000000000000000000000000000000000000000"
        "131111031211111112311411111111111111121111110111111111"
        ))
        << qMakePair(QString("Minefield"), QString(
        "000000990009000000030000000000000000000000000000000000"
        "000000000000000000000000000000000000000000000000000000"
        "000000000000020550000004000700400000000020000000060000"
        "111111111111111111111111111111111111111111110111111111"
        ))
        << qMakePair(QString("Thinking with Portals"), QString(
        "900000900200000000210000000000000011000009000000000000"
        "040504054160065554655446477657666666615551010111541111"
        "000000000000020550000004000700400000000020000000060000"
        "131111031211111112311411111111111111121111110111111111"
        ));

QColor *colors[] = {
                    new QColor(221,   0,   0), // classic red
                    new QColor( 51, 102, 217), // dark blue
                    new QColor( 62, 147,  33), // classic green
                    new QColor(162,  61, 187), // classic purple
                    new QColor(255, 255,  0), // yellow
                    new QColor(115, 115, 115), // classic gray
                    new QColor(0, 255, 255),   // cyan
                    new QColor(255, 136, 136), // peach
                    // add new colors here
                    0};

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

bool haveServer = ${HAVE_NETSERVER};
bool isDevBuild = ${HW_DEV};