annotate car.h @ 53:a233027e895c

*** empty log message ***
author gongo
date Wed, 08 Nov 2006 07:19:26 +0000
parents a1908b83f8fa
children ce9ef7dcf2f0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
1 /*
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
2 * $Id$
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
3 */
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
4 typedef struct car {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
5 FVECTOR direction; // 向き
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
6 FVECTOR vertical; //
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
7 FVECTOR location; // 位置
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
8 float speed; // 速度
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
9 float speed_accel; // 加速度
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
10 float speed_max; // 最高速度
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
11 float brake; // ブレーキ
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
12 float rotation_angle; // 回転度数
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
13 float y_angle; // 角度
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
14 void *free_addr;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
15 struct car *next;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
16 OBJECT* body;
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);