Changeset 11166 for code/branches/sagerjFS16/src/orxonox/controllers
- Timestamp:
- Apr 14, 2016, 4:02:00 PM (9 years ago)
- Location:
- code/branches/sagerjFS16/src/orxonox/controllers
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sagerjFS16/src/orxonox/controllers/HumanController.cc
r11164 r11166 159 159 void HumanController::fire(unsigned int firemode) 160 160 { 161 orxout() << "fire hc " << firemode << endl; 161 162 if (HumanController::localController_s) 162 163 HumanController::localController_s->doFire(firemode); … … 165 166 void HumanController::doFire(unsigned int firemode) 166 167 { 168 orxout() << "do fire hc " << firemode << endl; 167 169 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_) 168 170 { … … 178 180 void HumanController::release(unsigned int firemode) 179 181 { 180 orxout() << " HumanController" << firemode << endl;182 orxout() << "release hc " << firemode << endl; 181 183 if (HumanController::localController_s) 182 184 HumanController::localController_s->doRelease(firemode); … … 185 187 void HumanController::doRelease(unsigned int firemode) 186 188 { 189 orxout() << "do release hc " << firemode << endl; 187 190 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_) 188 191 { -
code/branches/sagerjFS16/src/orxonox/controllers/NewHumanController.cc
r11164 r11166 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();57 56 58 57 RegisterUnloadableClass(NewHumanController); … … 286 285 if (firemode == 1 && this->controlMode_ == 1) 287 286 { 287 orxout() << "do fire nhc if " << firemode << endl; 288 288 //unlocked steering, steer on right mouse click 289 289 HumanController::yaw(Vector2(this->currentYaw_, 0)); … … 291 291 } 292 292 else 293 { 294 orxout() << "do fire nhc else " << firemode << endl; 293 295 HumanController::doFire(firemode); //call for formationflight 294 } 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(); 296 } 297 } 298 299 void NewHumanController::doRelease(unsigned int firemode) 300 { 301 orxout() << "do release nhc" << firemode << endl; 307 302 if (!this->controllableEntity_) 308 303 return; … … 311 306 312 307 HumanController::doRelease(firemode); //call for formationflight 313 } */308 } 314 309 315 310 void NewHumanController::hit(Pawn* originator, btManifoldPoint& contactpoint, float damage) -
code/branches/sagerjFS16/src/orxonox/controllers/NewHumanController.h
r11164 r11166 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 virtual void doRelease(unsigned int firemode) override; 59 58 60 59 virtual void hit(Pawn* originator, btManifoldPoint& contactpoint, float damage) override;
Note: See TracChangeset
for help on using the changeset viewer.