|
1 /* |
|
2 * Hedgewars, a free turn based strategy game |
|
3 * Copyright (c) 2004-2012 Andrey Korotaev <unC0Rr@gmail.com> |
|
4 * Copyright (c) 2012 Simeon Maxein <smaxein@googlemail.com> |
|
5 * |
|
6 * This program is free software; you can redistribute it and/or modify |
|
7 * it under the terms of the GNU General Public License as published by |
|
8 * the Free Software Foundation; version 2 of the License |
|
9 * |
|
10 * This program is distributed in the hope that it will be useful, |
|
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 * GNU General Public License for more details. |
|
14 * |
|
15 * You should have received a copy of the GNU General Public License |
|
16 * along with this program; if not, write to the Free Software |
|
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
18 */ |
|
19 |
1 /** |
20 /** |
2 * This file contains important constants which might need to be changed to adapt to |
21 * This file contains important constants which might need to be changed to adapt to |
3 * changes in the engine or protocols. |
22 * changes in the engine or protocols. |
4 */ |
23 */ |
5 |
24 |
6 #ifndef HWCONSTS_H_ |
25 #ifndef HWCONSTS_H_ |
7 #define HWCONSTS_H_ |
26 #define HWCONSTS_H_ |
8 |
27 |
|
28 #include <inttypes.h> |
|
29 #include <stddef.h> |
|
30 |
9 #define HEDGEHOGS_PER_TEAM 8 |
31 #define HEDGEHOGS_PER_TEAM 8 |
10 #define NETGAME_DEFAULT_PORT 46631 |
32 #define NETGAME_DEFAULT_PORT 46631 |
11 #define PROTOCOL_VERSION 41 |
33 #define PROTOCOL_VERSION 42 |
12 #define MIN_SERVER_VERSION 1 |
34 #define MIN_SERVER_VERSION 1 |
13 |
35 |
14 #define GAMEMOD_PERHOGAMMO_MASKBIT 22 |
36 // Used for sending scripts to the engine |
15 #define GAMEMOD_SHAREDAMMO_MASKBIT 16 |
37 #define MULTIPLAYER_SCRIPT_PATH "Scripts/Multiplayer/" |
16 |
38 |
17 #define WEAPONS_COUNT 55 |
39 #define WEAPONS_COUNT 55 |
18 |
40 |
|
41 /* A merge of mikade/bugq colours w/ a bit of channel feedback */ |
|
42 #define HW_TEAMCOLOR_ARRAY { UINT32_C(0xffff0204), /* red */ \ |
|
43 UINT32_C(0xff4980c1), /* blue */ \ |
|
44 UINT32_C(0xff1de6ba), /* teal */ \ |
|
45 UINT32_C(0xffb541ef), /* purple */ \ |
|
46 UINT32_C(0xffe55bb0), /* pink */ \ |
|
47 UINT32_C(0xff20bf00), /* green */ \ |
|
48 UINT32_C(0xfffe8b0e), /* orange */ \ |
|
49 UINT32_C(0xff5f3605), /* brown */ \ |
|
50 UINT32_C(0xffffff01), /* yellow */ \ |
|
51 /* add new colors here */ \ |
|
52 0 } /* Keep this 0 at the end or the length will be calculated wrong */ |
|
53 |
|
54 // TODO allow setting alternative color lists? |
|
55 extern const size_t flib_teamcolor_defaults_len; |
|
56 extern const uint32_t flib_teamcolor_defaults[]; |
|
57 |
19 #endif |
58 #endif |