-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathglobals.h
45 lines (37 loc) · 958 Bytes
/
globals.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef __GLOBAL__
#define __GLOBAL__
#define WIDTH_GRID 14
#define HEIGHT_GRID 14
#if GCW
#define IS_GCW 1
#define SCREEN_WIDTH 320
#define SCREEN_HEIGHT 240
#define WIDTH_GRID_PX 17
#define HEIGHT_GRID_PX 17
#define WIDTH_CONTROL_PX 30
#define HEIGHT_CONTROL_PX 30
#define SELECTED_WIDTH_CONTROL_PX 36
#define SELECTED_HEIGHT_CONTROL_PX 36
#define CONTROL_MARGIN_X 4
#define CONTROL_MARGIN_Y 4
#else
#define IS_GCW 0
#define SCREEN_WIDTH 480
#define SCREEN_HEIGHT 350
#define WIDTH_GRID_PX 25
#define HEIGHT_GRID_PX 25
#define WIDTH_CONTROL_PX 45
#define HEIGHT_CONTROL_PX 45
#define SELECTED_WIDTH_CONTROL_PX 55
#define SELECTED_HEIGHT_CONTROL_PX 55
#define CONTROL_MARGIN_X 10
#define CONTROL_MARGIN_Y 10
#endif
#define NB_COLORS 6
#define MAX_TURNS 25
#define MULTIPLAYER_PORT 1203
#define MULTIPLAYER_PORT_CLIENT 1204
#define MULTIPLAYER_PORT_SERVER 1205
#define MULTIPLAYER_MIN_PLAYERS_NUMBER 2
#define MULTIPLAYER_MAX_PLAYERS_NUMBER 4
#endif