Changeset 10184 for code/branches/pickupsFS14/src/modules/jump/Jump.cc
- Timestamp:
- Dec 17, 2014, 3:43:07 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickupsFS14/src/modules/jump/Jump.cc
r10111 r10184 1271 1271 } 1272 1272 1273 float Jump::getFuel() const 1274 { 1275 if (this->figure_ != NULL) 1276 { 1277 if (this->figure_->rocketActive_ != NULL) 1278 { 1279 return this->figure_->rocketActive_->getFuelState(); 1280 } 1281 else if (this->figure_->propellerActive_ != NULL) 1282 { 1283 return this->figure_->propellerActive_->getFuelState(); 1284 } 1285 else if (this->figure_->shieldActive_ != NULL) 1286 { 1287 return this->figure_->shieldActive_->getFuelState(); 1288 } 1289 else if (this->figure_->bootsActive_ != NULL) 1290 { 1291 return this->figure_->bootsActive_->getFuelState(); 1292 } 1293 } 1294 1295 return 0.0; 1296 } 1297 1273 1298 bool Jump::getDead(PlayerInfo* player) const 1274 1299 {
Note: See TracChangeset
for help on using the changeset viewer.