view game.h @ 97:afddacdf30dd

compile on Mac OS X -no Warning
author Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
date Thu, 02 Jun 2011 16:15:00 +0900
parents 0b65ca27f113
children 165b4d902ca4
line wrap: on
line source

/* game.h */

#ifndef GAME_H
#define GAME_H

#include "car.h"
#include "linda/lindaapi.h"

void game_main();

int linda_init();
void psx_sync_n();

typedef struct game {
    CarPtr jiki;
    int course_id;   // コースID
    int car_id;      // 自機ID
    int camera_type; // カメラのタイプ
    int play_id;
    int rap;
} Game, *GamePtr;


extern Game *game;

#endif

// car.hに書くと、game.hとお互いにincludeしてしまう
void car_id_update(Game *game, CarPtr jiki);