#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))