Changeset 7219 for code/branches/consolecommands3/src/orxonox/controllers
- Timestamp:
- Aug 26, 2010, 12:09:12 AM (14 years ago)
- Location:
- code/branches/consolecommands3/src/orxonox/controllers
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/orxonox/controllers/ArtificialController.cc
r7204 r7219 47 47 namespace orxonox 48 48 { 49 SetConsoleCommand(ArtificialController, formationflight, true);50 SetConsoleCommand(ArtificialController, masteraction, true);51 SetConsoleCommand(ArtificialController, followme, true);52 SetConsoleCommand(ArtificialController, passivebehaviour, true);53 SetConsoleCommand(ArtificialController, formationsize, true);49 _SetConsoleCommand("ArtificialController", "formationflight", &ArtificialController::formationflight); 50 _SetConsoleCommand("ArtificialController", "masteraction", &ArtificialController::masteraction); 51 _SetConsoleCommand("ArtificialController", "followme", &ArtificialController::followme); 52 _SetConsoleCommand("ArtificialController", "passivebehaviour", &ArtificialController::passivebehaviour); 53 _SetConsoleCommand("ArtificialController", "formationsize", &ArtificialController::formationsize); 54 54 55 55 static const unsigned int STANDARD_MAX_FORMATION_SIZE = 7; -
code/branches/consolecommands3/src/orxonox/controllers/HumanController.cc
r7204 r7219 40 40 namespace orxonox 41 41 { 42 SetConsoleCommand(HumanController, moveFrontBack, true).setAsInputCommand();43 SetConsoleCommand(HumanController, moveRightLeft, true).setAsInputCommand();44 SetConsoleCommand(HumanController, moveUpDown, true).setAsInputCommand();45 SetConsoleCommand(HumanController, rotateYaw, true).setAsInputCommand();46 SetConsoleCommand(HumanController, rotatePitch, true).setAsInputCommand();47 SetConsoleCommand(HumanController, rotateRoll, true).setAsInputCommand();48 SetConsoleCommand(HumanController, fire, true).keybindMode(KeybindMode::OnHold);49 SetConsoleCommand(HumanController, reload, true);50 SetConsoleCommand(HumanController, boost, true).keybindMode(KeybindMode::OnHold);51 SetConsoleCommand(HumanController, greet, true);52 SetConsoleCommand(HumanController, switchCamera, true);53 SetConsoleCommand(HumanController, mouseLook, true);54 SetConsoleCommand(HumanController, suicide, true);55 SetConsoleCommand(HumanController, toggleGodMode, true);56 SetConsoleCommand(HumanController, addBots, true).defaultValues(1);57 SetConsoleCommand(HumanController, killBots, true).defaultValues(0);58 SetConsoleCommand(HumanController, dropItems, true);59 SetConsoleCommand(HumanController, useItem, true);60 SetConsoleCommand(HumanController, cycleNavigationFocus, true);61 SetConsoleCommand(HumanController, releaseNavigationFocus, true);42 _SetConsoleCommand("HumanController", "moveFrontBack", &HumanController::moveFrontBack ).addShortcut().setAsInputCommand(); 43 _SetConsoleCommand("HumanController", "moveRightLeft", &HumanController::moveRightLeft ).addShortcut().setAsInputCommand(); 44 _SetConsoleCommand("HumanController", "moveUpDown", &HumanController::moveUpDown ).addShortcut().setAsInputCommand(); 45 _SetConsoleCommand("HumanController", "rotateYaw", &HumanController::rotateYaw ).addShortcut().setAsInputCommand(); 46 _SetConsoleCommand("HumanController", "rotatePitch", &HumanController::rotatePitch ).addShortcut().setAsInputCommand(); 47 _SetConsoleCommand("HumanController", "rotateRoll", &HumanController::rotateRoll ).addShortcut().setAsInputCommand(); 48 _SetConsoleCommand("HumanController", "fire", &HumanController::fire ).addShortcut().keybindMode(KeybindMode::OnHold); 49 _SetConsoleCommand("HumanController", "reload", &HumanController::reload ).addShortcut(); 50 _SetConsoleCommand("HumanController", "boost", &HumanController::boost ).addShortcut().keybindMode(KeybindMode::OnHold); 51 _SetConsoleCommand("HumanController", "greet", &HumanController::greet ).addShortcut(); 52 _SetConsoleCommand("HumanController", "switchCamera", &HumanController::switchCamera ).addShortcut(); 53 _SetConsoleCommand("HumanController", "mouseLook", &HumanController::mouseLook ).addShortcut(); 54 _SetConsoleCommand("HumanController", "suicide", &HumanController::suicide ).addShortcut(); 55 _SetConsoleCommand("HumanController", "toggleGodMode", &HumanController::toggleGodMode ).addShortcut(); 56 _SetConsoleCommand("HumanController", "addBots", &HumanController::addBots ).addShortcut().defaultValues(1); 57 _SetConsoleCommand("HumanController", "killBots", &HumanController::killBots ).addShortcut().defaultValues(0); 58 _SetConsoleCommand("HumanController", "dropItems", &HumanController::dropItems ).addShortcut(); 59 _SetConsoleCommand("HumanController", "useItem", &HumanController::useItem ).addShortcut(); 60 _SetConsoleCommand("HumanController", "cycleNavigationFocus", &HumanController::cycleNavigationFocus).addShortcut(); 61 _SetConsoleCommand("HumanController", "releaseNavigationFocus", &HumanController::releaseNavigationFocus).addShortcut(); 62 62 63 63 CreateUnloadableFactory(HumanController); -
code/branches/consolecommands3/src/orxonox/controllers/NewHumanController.cc
r7204 r7219 49 49 namespace orxonox 50 50 { 51 SetConsoleCommand(NewHumanController, changeMode, false).keybindMode(KeybindMode::OnPress);52 SetConsoleCommand(NewHumanController, accelerate, false).keybindMode(KeybindMode::OnPress);53 SetConsoleCommand(NewHumanController, decelerate, false).keybindMode(KeybindMode::OnPress);54 SetConsoleCommand(NewHumanController, unfire, true).keybindMode(KeybindMode::OnRelease);51 _SetConsoleCommand("NewHumanController", "changeMode", &NewHumanController::changeMode).keybindMode(KeybindMode::OnPress); 52 _SetConsoleCommand("NewHumanController", "accelerate", &NewHumanController::accelerate).keybindMode(KeybindMode::OnPress); 53 _SetConsoleCommand("NewHumanController", "decelerate", &NewHumanController::decelerate).keybindMode(KeybindMode::OnPress); 54 _SetConsoleCommand("NewHumanController", "unfire", &NewHumanController::unfire ).keybindMode(KeybindMode::OnRelease).addShortcut(); 55 55 56 56 CreateUnloadableFactory(NewHumanController);
Note: See TracChangeset
for help on using the changeset viewer.