QTfrontend/hwconsts.cpp.in
author nemo
Fri, 05 Nov 2010 18:56:12 -0400
changeset 4140 1563b216f243
parent 4130 f437909ac9d4
child 4206 85ff4cce27c6
permissions -rw-r--r--
revert attempts to block switching weapon while targetting in infinite attack mode. just getting too messy. probably best to allow any weapon to be targetted, and store the target in the gear and draw it there instead of uworld, but I'm leaving this alone

/*
 * Hedgewars, a free turn based strategy game
 * Copyright (c) 2007-2010 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;

bool custom_config = false;
bool custom_data = false;

int cMaxTeams = 6;

QString * cDefaultAmmoStore = new QString(
        "9391929422199121032235111001201000000211110101011"
        "0405040541600655546554464776576666666155510101117"
        "0000000000000205500000040007004000000000200000000"
        "1311110312111111123114111111111111111211111101111"
        );
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!
        "9999999999999999992999999999999999299999999909999"
        "1111110111111111111111111111111111111111111101111"
        "0000000000000000000000000000000000000000000000000"
        "1311110312111111123114111111111111111211110101111"
        ))
        << qMakePair(QString("Pro mode"),  QString(
        "9090009000000000000009000000000000000000000000000"
        "0000000000000000000000000000000000000000000000000"
        "0000000000000205500000040007004000000000200000000"
        "1111111111111111111111111111111111111111100101111"
        ))
        << qMakePair(QString("Shoppa"),    QString(
        "0000009900000000000000000000000000000000000000000"
        "4444410044244402210112121222422000000002000400010"
        "0000000000000000000000000000000000000000000000000"
        "1111111111111111111111111111111111111111101101111"
        ))
        << qMakePair(QString("Clean Slate"),QString(
        "1010009000010000011000000000000000000000000000001"
        "0405040541600655546554464776576666666155510101117"
        "0000000000000205500000040007004000000000200000000"
        "1311110312111111123114111111111111111211111101111"
        ))
        << qMakePair(QString("Minefield"), QString(
        "0000009900090000000300000000000000000000000000000"
        "0000000000000000000000000000000000000000000000000"
        "0000000000000205500000040007004000000000200000000"
        "1111111111111111111111111111111111111111111101111"
        ));

QColor *colors[] = {
                    new QColor(221,   0,   0), // classic red
                    new QColor( 67, 118, 233), // classic blue
                    new QColor( 62, 147,  33), // classic green
                    new QColor(162,  61, 187), // classic purple
                    new QColor(255, 147,  41), // classic orange
                    new QColor(115, 115, 115), // classic gray
                    new QColor(187, 162,  61), // gold
                    new QColor( 61, 162, 187), // cyan
                    // add new colors here
                    0};

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

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