[go: up one dir, main page]

Menu

[r90]: / globals.h  Maximize  Restore  History

Download this file

35 lines (30 with data), 833 Bytes

 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
#define MOVE_SPEED 700. //Pixels per second
#define FLEET_SPEED_DEFAULT 1 //cells per second
#define PRODUCTION_SPEED_DEFAULT 3000 //milliseconds per cycle
#define CELL_X 60
#define CELL_Y 30
#define CELL_HEIGHT 50
#define CELL_WIDTH 50
#define BG_Z 0
#define PLAYER_COLOUR_Z 1
#define FLEETS_Z 2
#define PLANETS_Z 3
#define SELECTED_Z 4
#define DOMINATIONBAR_Z 5
#define DIALOG_Z 6
#define DIALOG_TEXT_Z 7
#define HUD_Z 8
#define MINIMAP_Z 9
#define MINIMAP_SQUARE_Z 10
#define HUD_TEXT_Z 11
#define TEXTWINDOW_Z 12
#define TEXTWINDOW_TEXT_Z 13
#define MENU_Z 14
#define MENU_ITEM_Z 15
#define PACKET_TIMEOUT 200
#define PACKET_SIZE 512
#define GAME_PORT 4747
#define LOBBY_PORT 4748
#define BUFFER_OFFSET(i) ((char *)NULL + (i))
#define MAX(a, b) ((a)>(b)?(a):(b))
#define MIN(a, b) ((a)<(b)?(a):(b))