82 |
- (void) setAcceleration :(float)acceleration |
- (void) setAcceleration :(float)acceleration |
83 |
{ |
{ |
84 |
[[NSNotificationCenter defaultCenter] |
[[NSNotificationCenter defaultCenter] |
85 |
postNotificationName:@"updateObject" object: [self game]]; |
postNotificationName:@"updateObject" object: [_player game]]; |
86 |
|
|
87 |
_acceleration = acceleration; |
_acceleration = acceleration; |
88 |
} |
} |
101 |
- (void) setDirection : (float)direction |
- (void) setDirection : (float)direction |
102 |
{ |
{ |
103 |
[[NSNotificationCenter defaultCenter] |
[[NSNotificationCenter defaultCenter] |
104 |
postNotificationName:@"updateObject" object: [self game]]; |
postNotificationName:@"updateObject" object: [_player game]]; |
105 |
|
|
106 |
_direction = direction; |
_direction = direction; |
107 |
} |
} |
139 |
- (void) setCanonDirection: (float)canonDirection |
- (void) setCanonDirection: (float)canonDirection |
140 |
{ |
{ |
141 |
[[NSNotificationCenter defaultCenter] |
[[NSNotificationCenter defaultCenter] |
142 |
postNotificationName:@"updateObject" object: [self game]]; |
postNotificationName:@"updateObject" object: [_player game]]; |
143 |
|
|
144 |
_canonDirection = canonDirection; |
_canonDirection = canonDirection; |
145 |
} |
} |
158 |
- (void) setCanonElevation: (unsigned)canonElevation |
- (void) setCanonElevation: (unsigned)canonElevation |
159 |
{ |
{ |
160 |
[[NSNotificationCenter defaultCenter] |
[[NSNotificationCenter defaultCenter] |
161 |
postNotificationName:@"updateObject" object: [self game]]; |
postNotificationName:@"updateObject" object: [_player game]]; |
162 |
|
|
163 |
_canonElevation = canonElevation; |
_canonElevation = canonElevation; |
164 |
} |
} |