Changeset 7284 for code/trunk/src/orxonox/controllers
- Timestamp:
- Aug 31, 2010, 3:37:40 AM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/controllers/AIController.cc
r7184 r7284 31 31 #include "util/Math.h" 32 32 #include "core/CoreIncludes.h" 33 #include "core/ Executor.h"33 #include "core/command/Executor.h" 34 34 #include "worldentities/ControllableEntity.h" 35 35 #include "worldentities/pawns/Pawn.h" -
code/trunk/src/orxonox/controllers/ArtificialController.cc
r7184 r7284 33 33 34 34 #include "util/Math.h" 35 #include "core/ConsoleCommand.h"36 35 #include "core/CoreIncludes.h" 37 36 #include "core/XMLPort.h" 37 #include "core/command/ConsoleCommand.h" 38 38 #include "worldentities/ControllableEntity.h" 39 39 #include "worldentities/pawns/Pawn.h" … … 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/trunk/src/orxonox/controllers/DroneController.cc
r7163 r7284 32 32 33 33 #include "core/CoreIncludes.h" 34 #include "core/ Executor.h"34 #include "core/command/Executor.h" 35 35 #include "worldentities/ControllableEntity.h" 36 36 -
code/trunk/src/orxonox/controllers/HumanController.cc
r7163 r7284 30 30 31 31 #include "core/CoreIncludes.h" 32 #include "core/ ConsoleCommand.h"32 #include "core/command/ConsoleCommand.h" 33 33 #include "worldentities/ControllableEntity.h" 34 34 #include "worldentities/pawns/Pawn.h" … … 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/trunk/src/orxonox/controllers/NewHumanController.cc
r7184 r7284 37 37 38 38 #include "core/CoreIncludes.h" 39 #include "core/ ConsoleCommand.h"39 #include "core/command/ConsoleCommand.h" 40 40 #include "worldentities/ControllableEntity.h" 41 41 #include "worldentities/pawns/Pawn.h" … … 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.