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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
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
ce9ef7dcf2f0 convert UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 43
diff changeset
8 float speed; // 速度
ce9ef7dcf2f0 convert UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 43
diff changeset
9 float speed_accel; // 加速度
ce9ef7dcf2f0 convert UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 43
diff changeset
10 float speed_max; // 最高速度
ce9ef7dcf2f0 convert UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 43
diff changeset
11 float brake; // ブレーキ
ce9ef7dcf2f0 convert UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 43
diff changeset
12 float rotation_angle; // 回転度数
ce9ef7dcf2f0 convert UTF-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 43
diff changeset
13 float y_angle; // 角度
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
14 void *free_addr;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
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
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
17 } Car, *CarPtr;
43
a1908b83f8fa *** empty log message ***
gongo
parents: 0
diff changeset
18
a1908b83f8fa *** empty log message ***
gongo
parents: 0
diff changeset
19 extern CarPtr car_init(int id);
a1908b83f8fa *** empty log message ***
gongo
parents: 0
diff changeset
20 extern void car_accelerate(CarPtr, int);
a1908b83f8fa *** empty log message ***
gongo
parents: 0
diff changeset
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