Mercurial > hg > old > magoroku_racing
annotate car.h @ 91:cb6c6de125dc
halfway
author | Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 26 May 2011 14:44:03 +0900 |
parents | 8edae89a3877 |
children | 0b65ca27f113 |
rev | line source |
---|---|
90
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
88
diff
changeset
|
1 #ifndef CAR_H |
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
88
diff
changeset
|
2 #define CAR_H |
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
88
diff
changeset
|
3 |
91 | 4 #include "libps2.h" |
5 | |
0 | 6 typedef struct car { |
91 | 7 FVECTOR direction; // 向き |
8 FVECTOR vertical; // | |
9 FVECTOR location; // 位置 | |
88 | 10 float speed; // 速度 |
11 float speed_accel; // 加速度 | |
12 float speed_max; // 最高速度 | |
13 float brake; // ブレーキ | |
14 float rotation_angle; // 回転度数 | |
15 float y_angle; // 角度 | |
0 | 16 void *free_addr; |
17 struct car *next; | |
91 | 18 OBJECT* body; |
0 | 19 } Car, *CarPtr; |
43 | 20 |
21 extern CarPtr car_init(int id); | |
22 extern void car_accelerate(CarPtr, int); | |
23 extern void car_swerve(CarPtr, int); | |
90
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
88
diff
changeset
|
24 |
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
88
diff
changeset
|
25 #endif |