Changeset 11164 for code/branches/sagerjFS16/src/orxonox/controllers
- Timestamp:
- Apr 14, 2016, 1:11:00 PM (9 years ago)
- Location:
- code/branches/sagerjFS16/src/orxonox/controllers
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sagerjFS16/src/orxonox/controllers/HumanController.cc
r11153 r11164 178 178 void HumanController::release(unsigned int firemode) 179 179 { 180 orxout() << "HumanController " << firemode << endl; 180 181 if (HumanController::localController_s) 181 182 HumanController::localController_s->doRelease(firemode); -
code/branches/sagerjFS16/src/orxonox/controllers/HumanController.h
r11153 r11164 63 63 static void fire(unsigned int firemode); 64 64 virtual void doFire(unsigned int firemode); 65 static void reload();66 65 static void release(unsigned int firemode); 67 66 virtual void doRelease(unsigned int firemode); 67 static void reload(); 68 68 69 69 static void boost(const Vector2& value); // Static method, controls boosting. -
code/branches/sagerjFS16/src/orxonox/controllers/NewHumanController.cc
r11153 r11164 54 54 SetConsoleCommand("NewHumanController", "accelerate", &NewHumanController::accelerate).keybindMode(KeybindMode::OnPress); 55 55 SetConsoleCommand("NewHumanController", "decelerate", &NewHumanController::decelerate).keybindMode(KeybindMode::OnPress); 56 SetConsoleCommand("NewHumanController", "release", &NewHumanController::release).keybindMode(KeybindMode::OnRelease).addShortcut();56 //SetConsoleCommand("NewHumanController", "release", &NewHumanController::release ).keybindMode(KeybindMode::OnRelease).addShortcut(); 57 57 58 58 RegisterUnloadableClass(NewHumanController); … … 294 294 } 295 295 296 /*void NewHumanController::release(unsigned int firemode) 297 { 298 if (NewHumanController::localController_s) 299 NewHumanController::localController_s->doRelease(firemode); 300 orxout() << "Trigger " << firemode << endl; 301 } 302 303 /void NewHumanController::doRelease(unsigned int firemode) 304 { 305 // this->firemode_ = -1; (outdated code from unfire) 306 // hideArrows(); 307 if (!this->controllableEntity_) 308 return; 309 310 this->firemode_ = firemode; 311 312 HumanController::doRelease(firemode); //call for formationflight 313 }*/ 314 296 315 void NewHumanController::hit(Pawn* originator, btManifoldPoint& contactpoint, float damage) 297 316 { … … 342 361 } 343 362 } 344 }345 346 void NewHumanController::release(unsigned int firemode)347 {348 if (NewHumanController::localController_s)349 NewHumanController::localController_s->doRelease();350 orxout() << "Trigger" << endl;351 }352 353 void NewHumanController::doRelease(unsigned int firemode)354 {355 // this->firemode_ = -1; (outdated code from unfire)356 // hideArrows();357 if (!this->controllableEntity_)358 return;359 360 this->firemode_ = firemode;361 362 HumanController::doRelease(firemode); //call for formationflight363 363 } 364 364 -
code/branches/sagerjFS16/src/orxonox/controllers/NewHumanController.h
r11153 r11164 55 55 56 56 virtual void doFire(unsigned int firemode) override; 57 /*virtual void release(unsigned int firemode); 58 virtual void doRelease(unsigned int firemode);*/ 57 59 58 60 virtual void hit(Pawn* originator, btManifoldPoint& contactpoint, float damage) override; 59 60 static void release(unsigned int firemode);61 virtual void doRelease(unsigned int firemode);62 61 63 62 void centerCursor();
Note: See TracChangeset
for help on using the changeset viewer.