OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
gt2aMain.h
1/*
2GameSpy GT2 SDK
3GT2Action - sample app
4Dan "Mr. Pants" Schoenblum
5dan@gamespy.com
6
7Copyright 2000 GameSpy Industries, Inc
8
9*/
10
11#ifndef _GT2AMAIN_H_
12#define _GT2AMAIN_H_
13
14#include <stdio.h>
15#include <GL/glut.h>
16#include "../../nonport.h"
17#include "../gt2.h"
18#include "../gt2Encode.h"
19
20#define PORT_STRING ":12345"
21
22#define MAX_PLAYERS 64
23
24#define BACKWARD -1
25#define STILL 0
26#define FORWARD 1
27
28#define LEFT -1
29#define RIGHT 1
30
31#define MAP_MIN 0
32#define MAP_MAX 100000.0
33#define MAP_HALF (MAP_MAX / 2)
34#define MAP_EXTRA (MAP_MAX / 10)
35
36#define MAX_NICK 32
37
38#define CHAT_MAX 64
39
40#define MSG_C_INITIAL 1
41#define MSG_C_INITIAL_STR "s"
42#define MSG_C_UPDATE 2
43#define MSG_C_UPDATE_STR "ppzzzz"
44#define MSG_C_PRESS 3
45#define MSG_C_PRESS_STR "s"
46#define MSG_C_CHAT 4
47#define MSG_C_CHAT_STR "s"
48#define MSG_S_ADDCLIENT 1001
49#define MSG_S_ADDCLIENT_STR "bs"
50#define MSG_S_DELCLIENT 1002
51#define MSG_S_DELCLIENT_STR "b"
52#define MSG_S_START 1003
53#define MSG_S_START_STR "b"
54#define MSG_S_UPDATE 1004
55#define MSG_S_UPDATE_STR "pbb"
56#define MSG_S_UPDATE_CLIENT_STR "bpppizzzzz"
57#define MSG_S_UPDATE_OBJECT_STR "bpppi"
58#define MSG_S_CHAT 1005
59#define MSG_S_CHAT_STR "s"
60#define MSG_S_SOUND 1006
61#define MSG_S_SOUND_STR "b"
62#define MSG_S_NUMASTEROIDS 1007
63#define MSG_S_NUMASTEROIDS_STR "b"
64
65typedef unsigned char byte;
66typedef float V2f[2];
67typedef byte V3b[3];
68
69extern const V3b Red;
70extern const V3b Green;
71extern const V3b Blue;
72extern const V3b Yellow;
73extern const V3b Orange;
74extern const V3b Purple;
75extern const V3b Black;
76extern const V3b White;
77extern const V3b Grey;
78
79void Log
80(
81 const char * format,
82 ...
83);
84
85#endif