view car.h @ 90:8edae89a3877

compile on Mac OS X
author Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
date Thu, 19 May 2011 16:41:21 +0900
parents ce9ef7dcf2f0
children cb6c6de125dc
line wrap: on
line source

#ifndef CAR_H
#define CAR_H

typedef struct car {
  //FVECTOR direction;    // 向き
  //FVECTOR vertical;     //
  //FVECTOR location;     // 位置
    float speed;          // 速度
    float speed_accel;    // 加速度
    float speed_max;      // 最高速度
    float brake;          // ブレーキ
    float rotation_angle; // 回転度数
    float y_angle;        // 角度
    void *free_addr;
    struct car *next;
  //OBJECT*  body;
} Car, *CarPtr;

extern CarPtr car_init(int id);
extern void car_accelerate(CarPtr, int);
extern void car_swerve(CarPtr, int);

#endif