0
|
1 /*
|
|
2 * $Id$
|
|
3 */
|
|
4
|
|
5 typedef enum game_state {
|
|
6 GAME_INIT,
|
|
7 GAME_OPENING,
|
|
8 GAME_SELECT_CAR,
|
|
9 GAME_WAIT,
|
|
10 GAME_SELECT_COURSE,
|
|
11 GAME_READY,
|
|
12 GAME_MAIN_INIT,
|
|
13 GAME_MAIN,
|
|
14 GAME_PAUSE,
|
|
15 GAME_GOAL,
|
|
16 GAME_FINISH
|
|
17 } GAME_STATE;
|
|
18
|
|
19 typedef struct game {
|
|
20 GAME_STATE state;
|
8
|
21 void (*exec)();
|
0
|
22 CarPtr jiki;
|
|
23 int course_id; // $B%3!<%9(BID
|
|
24 int car_id; // $B<+5!(BID
|
|
25 int camera_type; // $B%+%a%i$N%?%$%W(B
|
|
26 int select; // $BA*BrMQJQ?t!)$$$i$J$$$+(B
|
|
27 int play_id;
|
|
28 int rap;
|
|
29 } Game, *GamePtr;
|
|
30
|
|
31 extern Game game;
|