27 |
|
|
28 |
#include "HgStatic.h" |
#include "HgStatic.h" |
29 |
|
|
30 |
@interface HgMobile : HgStatic <NSCoding> |
@class NSCoder; |
31 |
|
|
32 |
|
@interface HgMobile : HgStatic |
33 |
{ |
{ |
34 |
@private |
@private |
35 |
coord_t _velocity; |
coord_t _velocity; |
37 |
float _acceleration; |
float _acceleration; |
38 |
float _direction; |
float _direction; |
39 |
unsigned _maxSpeed; |
unsigned _maxSpeed; |
40 |
unsigned _maxAcceleration; |
unsigned _maxAcceleration; |
41 |
} |
} |
42 |
|
|
43 |
- (id) initWithGame: (HgGame *)game |
- (id) initWithGame: (HgGame *)game |
57 |
- (void) setMaxSpeed: (unsigned)maxSpeed; |
- (void) setMaxSpeed: (unsigned)maxSpeed; |
58 |
- (void) setMaxAcceleration: (unsigned)maxAcceleration; |
- (void) setMaxAcceleration: (unsigned)maxAcceleration; |
59 |
|
|
|
|
|
60 |
@end |
@end |
61 |
|
|
62 |
|
@interface HgMobile (NSCoding) |
63 |
|
|
64 |
|
- (void)encodeWithCoder: (NSCoder *)encoder; |
65 |
|
- (id)initWithCoder: (NSCoder *)decoder; |
66 |
|
|
67 |
|
@end |
68 |
|
|
69 |
#endif /* HG_MOBILE_H */ |
#endif /* HG_MOBILE_H */ |