author | unc0rr |
Tue, 27 Nov 2012 10:05:24 +0400 | |
branch | flibqtfrontend |
changeset 8133 | 2d0f56423eb3 |
parent 7905 | 15577789ab8b |
child 8208 | 171da01bd04d |
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; |
2428 | 29 |
extern QString * cConfigDir; |
583 | 30 |
|
31 |
extern QDir * bindir; |
|
32 |
extern QDir * cfgdir; |
|
33 |
extern QDir * datadir; |
|
34 |
||
3932 | 35 |
extern bool custom_config; |
36 |
extern bool custom_data; |
|
37 |
||
3865 | 38 |
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
|
39 |
extern int cMinServerVersion; |
3865 | 40 |
|
7130 | 41 |
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
|
42 |
|
607 | 43 |
extern QString * cDefaultAmmoStore; |
2369
c3eb11f1ab3a
Implement probability editor for weapon schemes (engine doesn't support that yet)
unc0rr
parents:
1967
diff
changeset
|
44 |
extern int cAmmoNumber; |
1967 | 45 |
extern QList< QPair<QString, QString> > cDefaultAmmos; |
616 | 46 |
|
8133 | 47 |
extern quint32 colors[]; |
654 | 48 |
|
49 |
extern QString * netHost; |
|
50 |
extern quint16 netPort; |
|
1415
6fbfee0e113a
Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents:
1210
diff
changeset
|
51 |
|
6fbfee0e113a
Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents:
1210
diff
changeset
|
52 |
extern bool haveServer; |
3074 | 53 |
extern bool isDevBuild; |
6579 | 54 |
|
55 |
//Current season, SEASON_NONE by default |
|
56 |
extern int season; |
|
57 |
//On the day of hedgewars birthday (Oct 31st) this variable is assigned |
|
58 |
//with number of years past 2004 (foundation of hedgewars) |
|
59 |
//Could be used to implement a text/graphic like "This is the xxth birthday of hedgewars" or similar |
|
60 |
extern int years_since_foundation; |
|
61 |
||
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
|
62 |
#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
|
63 |
|
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
|
64 |
#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
|
65 |
|
7754 | 66 |
#define AMMOLINE_DEFAULT_QT "93919294221991210322351110012010000002111101010111110101" |
67 |
#define AMMOLINE_DEFAULT_PROB "04050405416006555465544647765766666661555101011154110101" |
|
7730
2013733f9ca9
A bit more on the knife. Also add missing files to CMakeLists
nemo
parents:
7258
diff
changeset
|
68 |
#define AMMOLINE_DEFAULT_DELAY "00000000000002055000000400070040000000002200000006000000" |
2013733f9ca9
A bit more on the knife. Also add missing files to CMakeLists
nemo
parents:
7258
diff
changeset
|
69 |
#define AMMOLINE_DEFAULT_CRATE "13111103121111111231141111111111111112111111011111110101" |
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
|
70 |
|
7754 | 71 |
#define AMMOLINE_CRAZY_QT "99999999999999999929999999999999992999999999099999920909" |
72 |
#define AMMOLINE_CRAZY_PROB "11111101111111111111111111111111111111111111011111110101" |
|
7730
2013733f9ca9
A bit more on the knife. Also add missing files to CMakeLists
nemo
parents:
7258
diff
changeset
|
73 |
#define AMMOLINE_CRAZY_DELAY "00000000000000000000000000000000000000000000000000000000" |
7754 | 74 |
#define AMMOLINE_CRAZY_CRATE "13111103121111111231141111111111111112111101011111110101" |
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
|
75 |
|
7905 | 76 |
#define AMMOLINE_PROMODE_QT "90900090000000000000090000000000000000000000000000000000" |
7730
2013733f9ca9
A bit more on the knife. Also add missing files to CMakeLists
nemo
parents:
7258
diff
changeset
|
77 |
#define AMMOLINE_PROMODE_PROB "00000000000000000000000000000000000000000000000000000000" |
7905 | 78 |
#define AMMOLINE_PROMODE_DELAY "00000000000002055000000400070040000000002000000000000002" |
7754 | 79 |
#define AMMOLINE_PROMODE_CRATE "11111111111111111111111111111111111111111001011111110101" |
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
|
80 |
|
7730
2013733f9ca9
A bit more on the knife. Also add missing files to CMakeLists
nemo
parents:
7258
diff
changeset
|
81 |
#define AMMOLINE_SHOPPA_QT "00000099000000000000000000000000000000000000000000000000" |
7905 | 82 |
#define AMMOLINE_SHOPPA_PROB "44444100442444022101121212224220000000020004000100110001" |
7730
2013733f9ca9
A bit more on the knife. Also add missing files to CMakeLists
nemo
parents:
7258
diff
changeset
|
83 |
#define AMMOLINE_SHOPPA_DELAY "00000000000000000000000000000000000000000000000000000000" |
7754 | 84 |
#define AMMOLINE_SHOPPA_CRATE "11111111111111111111111111111111111111111011011111110001" |
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
|
85 |
|
7730
2013733f9ca9
A bit more on the knife. Also add missing files to CMakeLists
nemo
parents:
7258
diff
changeset
|
86 |
#define AMMOLINE_CLEAN_QT "10100090000100000110000000000000000000000000000010000000" |
7754 | 87 |
#define AMMOLINE_CLEAN_PROB "04050405416006555465544647765766666661555101011154110101" |
7730
2013733f9ca9
A bit more on the knife. Also add missing files to CMakeLists
nemo
parents:
7258
diff
changeset
|
88 |
#define AMMOLINE_CLEAN_DELAY "00000000000000000000000000000000000000000000000000000000" |
7754 | 89 |
#define AMMOLINE_CLEAN_CRATE "13111103121111111231141111111111111112111111011111110101" |
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
|
90 |
|
7730
2013733f9ca9
A bit more on the knife. Also add missing files to CMakeLists
nemo
parents:
7258
diff
changeset
|
91 |
#define AMMOLINE_MINES_QT "00000099000900000003000000000000000000000000000000000000" |
2013733f9ca9
A bit more on the knife. Also add missing files to CMakeLists
nemo
parents:
7258
diff
changeset
|
92 |
#define AMMOLINE_MINES_PROB "00000000000000000000000000000000000000000000000000000000" |
2013733f9ca9
A bit more on the knife. Also add missing files to CMakeLists
nemo
parents:
7258
diff
changeset
|
93 |
#define AMMOLINE_MINES_DELAY "00000000000002055000000400070040000000002000000006000000" |
7754 | 94 |
#define AMMOLINE_MINES_CRATE "11111111111111111111111111111111111111111111011111110101" |
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
|
95 |
|
7730
2013733f9ca9
A bit more on the knife. Also add missing files to CMakeLists
nemo
parents:
7258
diff
changeset
|
96 |
#define AMMOLINE_PORTALS_QT "90000090020000000021000000000000001100000900000000000000" |
7905 | 97 |
#define AMMOLINE_PORTALS_PROB "04050405416006555465544647765766666661555101011154110101" |
7730
2013733f9ca9
A bit more on the knife. Also add missing files to CMakeLists
nemo
parents:
7258
diff
changeset
|
98 |
#define AMMOLINE_PORTALS_DELAY "00000000000002055000000400070040000000002000000006000000" |
7754 | 99 |
#define AMMOLINE_PORTALS_CRATE "13111103121111111231141111111111111112111111011111110101" |
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
|
100 |
|
6579 | 101 |
//Different seasons; assigned to season (int) |
102 |
#define SEASON_NONE 0 |
|
103 |
#define SEASON_CHRISTMAS 2 |
|
104 |
#define SEASON_HWBDAY 4 |
|
105 |
#define SEASON_EASTER 8 |
|
5201 | 106 |
|
107 |
#define NETGAME_DEFAULT_PORT 46631 |