- Timestamp:
- May 26, 2016, 4:53:34 PM (9 years ago)
- Location:
- code/branches/presentationFS16
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationFS16
- Property svn:mergeinfo changed
/code/branches/sagerjFS16 (added) merged: 11138,11142,11153,11164,11166,11170,11174-11175,11185,11189,11205
- Property svn:mergeinfo changed
-
code/branches/presentationFS16/src/orxonox/controllers/NewHumanController.cc
r11071 r11208 54 54 SetConsoleCommand("NewHumanController", "accelerate", &NewHumanController::accelerate).keybindMode(KeybindMode::OnPress); 55 55 SetConsoleCommand("NewHumanController", "decelerate", &NewHumanController::decelerate).keybindMode(KeybindMode::OnPress); 56 SetConsoleCommand("NewHumanController", "unfire", &NewHumanController::unfire ).keybindMode(KeybindMode::OnRelease).addShortcut();57 56 58 57 RegisterUnloadableClass(NewHumanController); … … 277 276 } 278 277 279 void NewHumanController::do Fire(unsigned int firemode)278 void NewHumanController::doPush(unsigned int firemode) 280 279 { 281 280 if (!this->controllableEntity_) … … 291 290 } 292 291 else 293 HumanController::doFire(firemode); //call for formationflight 292 { 293 HumanController::doPush(firemode); //call for formationflight 294 } 295 } 296 297 void NewHumanController::doRelease(unsigned int firemode) 298 { 299 if (!this->controllableEntity_) 300 return; 301 302 this->firemode_ = firemode; 303 304 HumanController::doRelease(firemode); //call for formationflight 294 305 } 295 306 … … 342 353 } 343 354 } 344 }345 346 void NewHumanController::unfire()347 {348 if (NewHumanController::localController_s)349 NewHumanController::localController_s->doUnfire();350 }351 352 void NewHumanController::doUnfire()353 {354 this->firemode_ = -1;355 hideArrows();356 355 } 357 356
Note: See TracChangeset
for help on using the changeset viewer.