Mercurial > hg > old > magoroku_racing
annotate 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 |
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 |
0 | 4 typedef struct car { |
90
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
88
diff
changeset
|
5 //FVECTOR direction; // 向き |
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
88
diff
changeset
|
6 //FVECTOR vertical; // |
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
88
diff
changeset
|
7 //FVECTOR location; // 位置 |
88 | 8 float speed; // 速度 |
9 float speed_accel; // 加速度 | |
10 float speed_max; // 最高速度 | |
11 float brake; // ブレーキ | |
12 float rotation_angle; // 回転度数 | |
13 float y_angle; // 角度 | |
0 | 14 void *free_addr; |
15 struct car *next; | |
90
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
88
diff
changeset
|
16 //OBJECT* body; |
0 | 17 } Car, *CarPtr; |
43 | 18 |
19 extern CarPtr car_init(int id); | |
20 extern void car_accelerate(CarPtr, int); | |
21 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
|
22 |
8edae89a3877
compile on Mac OS X
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
88
diff
changeset
|
23 #endif |