author | unc0rr |
Fri, 04 Jan 2013 21:44:40 +0400 | |
branch | flibqtfrontend |
changeset 8363 | 0b4ac686fc44 |
parent 8276 | d4e113e745a9 |
parent 8323 | ab0b618bdf13 |
permissions | -rw-r--r-- |
583 | 1 |
/* |
1066 | 2 |
* Hedgewars, a free turn based strategy game |
6952 | 3 |
* Copyright (c) 2004-2012 Andrey Korotaev <unC0Rr@gmail.com> |
583 | 4 |
* |
5 |
* This program is free software; you can redistribute it and/or modify |
|
6 |
* it under the terms of the GNU General Public License as published by |
|
7 |
* the Free Software Foundation; version 2 of the License |
|
8 |
* |
|
9 |
* This program is distributed in the hope that it will be useful, |
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
13 |
* |
|
14 |
* You should have received a copy of the GNU General Public License |
|
15 |
* along with this program; if not, write to the Free Software |
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
17 |
*/ |
|
18 |
||
5200
7440fe992e73
* move ammo lines from .cpp.in to .h so that it is readable from the ios frontend (and who knows, maybe from other frontends as well)
koda
parents:
4976
diff
changeset
|
19 |
#if !defined(TARGET_OS_IPHONE) |
583 | 20 |
#include <QString> |
21 |
#include <QDir> |
|
22 |
#include <QStringList> |
|
1967 | 23 |
#include <QPair> |
583 | 24 |
|
5289
9d18b61bd3eb
- Implement ThemesModel (load theme icons once, store in memory, don't reload from disk every time selection changes)
unc0rr
parents:
5201
diff
changeset
|
25 |
|
583 | 26 |
extern QString * cProtoVer; |
907 | 27 |
extern QString * cVersionString; |
583 | 28 |
extern QString * cDataDir; |
29 |
||
30 |
extern QDir * bindir; |
|
31 |
extern QDir * cfgdir; |
|
32 |
extern QDir * datadir; |
|
33 |
||
3932 | 34 |
extern bool custom_config; |
35 |
extern bool custom_data; |
|
36 |
||
3865 | 37 |
extern int cMaxTeams; |
4973
53411a26df7e
Add server version (which is separate from protocol version) and a check in frontend for a new enough server (currently only qWarning)
unc0rr
parents:
4513
diff
changeset
|
38 |
extern int cMinServerVersion; |
3865 | 39 |
|
7130 | 40 |
class QStandardItemModel; |
5289
9d18b61bd3eb
- Implement ThemesModel (load theme icons once, store in memory, don't reload from disk every time selection changes)
unc0rr
parents:
5201
diff
changeset
|
41 |
|
607 | 42 |
extern QString * cDefaultAmmoStore; |
2369
c3eb11f1ab3a
Implement probability editor for weapon schemes (engine doesn't support that yet)
unc0rr
parents:
1967
diff
changeset
|
43 |
extern int cAmmoNumber; |
1967 | 44 |
extern QList< QPair<QString, QString> > cDefaultAmmos; |
616 | 45 |
|
8133 | 46 |
extern quint32 colors[]; |
654 | 47 |
|
48 |
extern QString * netHost; |
|
49 |
extern quint16 netPort; |
|
1415
6fbfee0e113a
Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents:
1210
diff
changeset
|
50 |
|
6fbfee0e113a
Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents:
1210
diff
changeset
|
51 |
extern bool haveServer; |
3074 | 52 |
extern bool isDevBuild; |
6579 | 53 |
|
54 |
//Current season, SEASON_NONE by default |
|
55 |
extern int season; |
|
56 |
//On the day of hedgewars birthday (Oct 31st) this variable is assigned |
|
57 |
//with number of years past 2004 (foundation of hedgewars) |
|
58 |
//Could be used to implement a text/graphic like "This is the xxth birthday of hedgewars" or similar |
|
59 |
extern int years_since_foundation; |
|
60 |
||
5200
7440fe992e73
* move ammo lines from .cpp.in to .h so that it is readable from the ios frontend (and who knows, maybe from other frontends as well)
koda
parents:
4976
diff
changeset
|
61 |
#endif |
7440fe992e73
* move ammo lines from .cpp.in to .h so that it is readable from the ios frontend (and who knows, maybe from other frontends as well)
koda
parents:
4976
diff
changeset
|
62 |
|
6015
daffc14a518a
cleaning up a little bit more, especially team class. we were leaking teams into heap memory on quick game starts btw
sheepluva
parents:
5771
diff
changeset
|
63 |
#define HEDGEHOGS_PER_TEAM 8 |
daffc14a518a
cleaning up a little bit more, especially team class. we were leaking teams into heap memory on quick game starts btw
sheepluva
parents:
5771
diff
changeset
|
64 |
|
8276 | 65 |
//#define AMMOLINE_DEFAULT_QT "9391929422199121032235111001201000000211110101011111101" |
66 |
//#define AMMOLINE_DEFAULT_PROB "0405040541600655546554464776576666666155510101115411101" |
|
67 |
//#define AMMOLINE_DEFAULT_DELAY "0000000000000205500000040007004000000000220000000600000" |
|
68 |
//#define AMMOLINE_DEFAULT_CRATE "1311110312111111123114111111111111111211111101111111101" |
|
5200
7440fe992e73
* move ammo lines from .cpp.in to .h so that it is readable from the ios frontend (and who knows, maybe from other frontends as well)
koda
parents:
4976
diff
changeset
|
69 |
|
8161 | 70 |
#define AMMOLINE_CRAZY_QT "9999999999999999992999999999999999299999999909999992909" |
71 |
#define AMMOLINE_CRAZY_PROB "1111110111111111111111111111111111111111111101111111101" |
|
72 |
#define AMMOLINE_CRAZY_DELAY "0000000000000000000000000000000000000000000000000000000" |
|
73 |
#define AMMOLINE_CRAZY_CRATE "1311110312111111123114111111111111111211110101111111101" |
|
5200
7440fe992e73
* move ammo lines from .cpp.in to .h so that it is readable from the ios frontend (and who knows, maybe from other frontends as well)
koda
parents:
4976
diff
changeset
|
74 |
|
8161 | 75 |
#define AMMOLINE_PROMODE_QT "9090009000000000000009000000000000000000000000000000000" |
76 |
#define AMMOLINE_PROMODE_PROB "0000000000000000000000000000000000000000000000000000000" |
|
77 |
#define AMMOLINE_PROMODE_DELAY "0000000000000205500000040007004000000000200000000000002" |
|
78 |
#define AMMOLINE_PROMODE_CRATE "1111111111111111111111111111111111111111100101111111101" |
|
5200
7440fe992e73
* move ammo lines from .cpp.in to .h so that it is readable from the ios frontend (and who knows, maybe from other frontends as well)
koda
parents:
4976
diff
changeset
|
79 |
|
8161 | 80 |
#define AMMOLINE_SHOPPA_QT "0000009900000000000000000000000000000000000000000000000" |
81 |
#define AMMOLINE_SHOPPA_PROB "4444410044244402210112121222422000000002000400010011001" |
|
82 |
#define AMMOLINE_SHOPPA_DELAY "0000000000000000000000000000000000000000000000000000000" |
|
83 |
#define AMMOLINE_SHOPPA_CRATE "1111111111111111111111111111111111111111101101111111001" |
|
5200
7440fe992e73
* move ammo lines from .cpp.in to .h so that it is readable from the ios frontend (and who knows, maybe from other frontends as well)
koda
parents:
4976
diff
changeset
|
84 |
|
8161 | 85 |
#define AMMOLINE_CLEAN_QT "1010009000010000011000000000000000000000000000001000000" |
86 |
#define AMMOLINE_CLEAN_PROB "0405040541600655546554464776576666666155510101115411101" |
|
87 |
#define AMMOLINE_CLEAN_DELAY "0000000000000000000000000000000000000000000000000000000" |
|
88 |
#define AMMOLINE_CLEAN_CRATE "1311110312111111123114111111111111111211111101111111101" |
|
5200
7440fe992e73
* move ammo lines from .cpp.in to .h so that it is readable from the ios frontend (and who knows, maybe from other frontends as well)
koda
parents:
4976
diff
changeset
|
89 |
|
8161 | 90 |
#define AMMOLINE_MINES_QT "0000009900090000000300000000000000000000000000000000000" |
91 |
#define AMMOLINE_MINES_PROB "0000000000000000000000000000000000000000000000000000000" |
|
92 |
#define AMMOLINE_MINES_DELAY "0000000000000205500000040007004000000000200000000600000" |
|
93 |
#define AMMOLINE_MINES_CRATE "1111111111111111111111111111111111111111111101111111101" |
|
5200
7440fe992e73
* move ammo lines from .cpp.in to .h so that it is readable from the ios frontend (and who knows, maybe from other frontends as well)
koda
parents:
4976
diff
changeset
|
94 |
|
8161 | 95 |
#define AMMOLINE_PORTALS_QT "9000009002000000002100000000000000110000090000000000000" |
96 |
#define AMMOLINE_PORTALS_PROB "0405040541600655546554464776576666666155510101115411101" |
|
97 |
#define AMMOLINE_PORTALS_DELAY "0000000000000205500000040007004000000000200000000600000" |
|
98 |
#define AMMOLINE_PORTALS_CRATE "1311110312111111123114111111111111111211111101111111101" |
|
5200
7440fe992e73
* move ammo lines from .cpp.in to .h so that it is readable from the ios frontend (and who knows, maybe from other frontends as well)
koda
parents:
4976
diff
changeset
|
99 |
|
6579 | 100 |
//Different seasons; assigned to season (int) |
101 |
#define SEASON_NONE 0 |
|
102 |
#define SEASON_CHRISTMAS 2 |
|
103 |
#define SEASON_HWBDAY 4 |
|
104 |
#define SEASON_EASTER 8 |
|
5201 | 105 |
|
106 |
#define NETGAME_DEFAULT_PORT 46631 |