- Timestamp:
- Nov 23, 2011, 2:13:52 PM (13 years ago)
- Location:
- code/branches/formation
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/formation/data/defaultConfig/keybindings.ini
r8706 r8943 71 71 KeyNumLock= 72 72 KeyNumRow0= 73 KeyNumRow1= 73 KeyNumRow1="toggleFormationFlight" 74 74 KeyNumRow2= 75 75 KeyNumRow3= -
code/branches/formation/src/orxonox/controllers/HumanController.cc
r8939 r8943 50 50 SetConsoleCommand("HumanController", "rotatePitch", &HumanController::rotatePitch ).addShortcut().setAsInputCommand(); 51 51 SetConsoleCommand("HumanController", "rotateRoll", &HumanController::rotateRoll ).addShortcut().setAsInputCommand(); 52 SetConsoleCommand("HumanController", "toggleFormationFlight", &HumanController::toggleFormationFlight).addShortcut(). setAsInputCommand();52 SetConsoleCommand("HumanController", "toggleFormationFlight", &HumanController::toggleFormationFlight).addShortcut().keybindMode(KeybindMode::OnPress); 53 53 SetConsoleCommand("HumanController", __CC_fire_name, &HumanController::fire ).addShortcut().keybindMode(KeybindMode::OnHold); 54 54 SetConsoleCommand("HumanController", "reload", &HumanController::reload ).addShortcut(); … … 88 88 HumanController::localController_s = 0; 89 89 if (this->state_==MASTER) 90 freeSlaves();90 removeFromFormation(); 91 91 } 92 92 … … 283 283 { 284 284 HumanController::localController_s->takeLeadOfFormation(); 285 //HumanController::localController_s->state_=MASTER;286 285 } 287 286 } -
code/branches/formation/src/orxonox/controllers/Masterable.cc
r8939 r8943 581 581 void Masterable::takeLeadOfFormation() 582 582 { 583 if (!this->getControllableEntity()) 584 return; 585 583 586 if (this->state_==MASTER) return; 584 587 //search new Master, then take lead … … 664 667 //debug 665 668 if (this->state_==SLAVE) 666 667 668 669 670 669 {orxout(debug_output) << this << " is slave "<< endl;} 670 else if (this->state_==MASTER) 671 {orxout(debug_output) << this << " is now a master of "<<this->slaves_.size()<<" slaves."<< endl;} 672 if (this->state_==FREE) 673 {orxout(debug_output) << this << " is free "<< endl;} 671 674 } 672 675
Note: See TracChangeset
for help on using the changeset viewer.