30 |
@interface HgMobile : HgStatic |
@interface HgMobile : HgStatic |
31 |
{ |
{ |
32 |
@private |
@private |
|
coord_t _velocity; |
|
|
coord_t _angularVelocity; |
|
|
float _acceleration; |
|
|
float _direction; |
|
33 |
unsigned _maxSpeed; |
unsigned _maxSpeed; |
34 |
unsigned _maxAcceleration; |
unsigned _maxAcceleration; |
35 |
} |
} |
37 |
- (id) initWithGame: (HgGame *)game |
- (id) initWithGame: (HgGame *)game |
38 |
player: (HgPlayer *)player |
player: (HgPlayer *)player |
39 |
position: (coord_t)position |
position: (coord_t)position |
40 |
velocity: (coord_t)velocity |
linearvelocity: (coord_t)linearVelocity |
41 |
angularVelocity: (coord_t)angularVelocity |
angularVelocity: (coord_t)angularVelocity; |
42 |
acceleration: (float)acceleration |
|
43 |
direction: (float)direction; |
- (coord_t) linearVelocity; |
44 |
|
- (void) setLinearVelocity :(coord_t)linearVelocity; |
45 |
|
|
|
- (coord_t) velocity; |
|
|
- (void) setVelocity :(coord_t)velocity; |
|
|
- (float) direction; |
|
|
- (void) setDirection :(float)direction; |
|
|
- (void) setAcceleration: (float)acceleration; |
|
46 |
- (coord_t) angularVelocity; |
- (coord_t) angularVelocity; |
47 |
- (void) updatePositon; |
- (void) setAngularVelocity :(coord_t)angularVelocity; |
48 |
|
|
49 |
- (void) setMaxSpeed: (unsigned)maxSpeed; |
- (void) setMaxSpeed: (unsigned)maxSpeed; |
50 |
- (void) setMaxAcceleration: (unsigned)maxAcceleration; |
- (void) setMaxAcceleration: (unsigned)maxAcceleration; |
51 |
|
|