view game.h @ 32:b5c5ffd4d2f2

*** empty log message ***
author gongo
date Sun, 05 Nov 2006 02:48:12 +0000
parents 0c8300ffa038
children 3b71b39411b1
line wrap: on
line source

/*
 * $Id$
 */

typedef enum game_state {
    GAME_INIT,
    GAME_OPENING,
    GAME_SELECT_CAR,
    GAME_WAIT,
    GAME_SELECT_COURSE,
    GAME_READY,
    GAME_MAIN_INIT,
    GAME_MAIN,
    GAME_PAUSE,
    GAME_GOAL,
    GAME_FINISH
} GAME_STATE;

typedef struct game {
    GAME_STATE state;
    void* (*exec)();
    CarPtr jiki;
    int course_id;   // $B%3!<%9(BID
    int car_id;      // $B<+5!(BID
    int camera_type; // $B%+%a%i$N%?%$%W(B
    int play_id;
    int rap;
} Game, *GamePtr;

extern Game game;