annotate game.h @ 0:0fae5658fb0b

Initial revision
author gongo
date Thu, 02 Nov 2006 08:55:19 +0000
parents
children f60cb9a39d7a
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;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
21 CarPtr jiki;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
22 int course_id; // $B%3!<%9(BID
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
23 int car_id; // $B<+5!(BID
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
24 int camera_type; // $B%+%a%i$N%?%$%W(B
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
25 int select; // $BA*BrMQJQ?t!)$$$i$J$$$+(B
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
26 int demo_flg; // (demo_flg == 0) ? $BDL>o%b!<%I(B : $B%G%b%b!<%I(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;