annotate game.h @ 8:f60cb9a39d7a

*** empty log message ***
author gongo
date Sat, 04 Nov 2006 08:28:46 +0000
parents 0fae5658fb0b
children b000c4765eca
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
1 /*
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
2 * $Id$
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
3 */
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
4
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
5 typedef enum game_state {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
6 GAME_INIT,
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
7 GAME_OPENING,
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
8 GAME_SELECT_CAR,
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
9 GAME_WAIT,
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
10 GAME_SELECT_COURSE,
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
11 GAME_READY,
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
12 GAME_MAIN_INIT,
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
13 GAME_MAIN,
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
14 GAME_PAUSE,
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
15 GAME_GOAL,
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
16 GAME_FINISH
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
17 } GAME_STATE;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
18
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
19 typedef struct game {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
20 GAME_STATE state;
8
f60cb9a39d7a *** empty log message ***
gongo
parents: 0
diff changeset
21 void (*exec)();
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
22 CarPtr jiki;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
23 int course_id; // $B%3!<%9(BID
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
24 int car_id; // $B<+5!(BID
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
25 int camera_type; // $B%+%a%i$N%?%$%W(B
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
26 int select; // $BA*BrMQJQ?t!)$$$i$J$$$+(B
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
27 int play_id;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
28 int rap;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
29 } Game, *GamePtr;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
30
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
31 extern Game game;