Changeset 10624 for code/trunk/src/orxonox/controllers
- Timestamp:
- Oct 4, 2015, 9:12:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
-
code/trunk/src/orxonox/controllers/ArtificialController.cc
r10294 r10624 30 30 #include "core/CoreIncludes.h" 31 31 #include "core/XMLPort.h" 32 #include "core/command/ConsoleCommand .h"32 #include "core/command/ConsoleCommandIncludes.h" 33 33 #include "worldentities/pawns/Pawn.h" 34 34 #include "worldentities/pawns/SpaceShip.h" -
code/trunk/src/orxonox/controllers/FormationController.cc
r10622 r10624 33 33 34 34 #include "core/XMLPort.h" 35 #include "core/command/ConsoleCommand .h"35 #include "core/command/ConsoleCommandIncludes.h" 36 36 37 37 #include "worldentities/ControllableEntity.h" -
code/trunk/src/orxonox/controllers/HumanController.cc
r9979 r10624 30 30 31 31 #include "core/CoreIncludes.h" 32 #include "core/command/ConsoleCommand .h"32 #include "core/command/ConsoleCommandIncludes.h" 33 33 #include "worldentities/ControllableEntity.h" 34 34 #include "worldentities/pawns/Pawn.h" … … 59 59 SetConsoleCommand("HumanController", __CC_suicide_name, &HumanController::suicide ).addShortcut(); 60 60 SetConsoleCommand("HumanController", "toggleGodMode", &HumanController::toggleGodMode ).addShortcut(); 61 SetConsoleCommand("HumanController", "addBots", &HumanController::addBots ).addShortcut().defaultValues(1);62 SetConsoleCommand("HumanController", "killBots", &HumanController::killBots ).addShortcut().defaultValues(0);63 61 SetConsoleCommand("HumanController", "cycleNavigationFocus", &HumanController::cycleNavigationFocus).addShortcut(); 64 62 SetConsoleCommand("HumanController", "releaseNavigationFocus", &HumanController::releaseNavigationFocus).addShortcut(); … … 318 316 } 319 317 320 void HumanController::addBots(unsigned int amount)321 {322 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_ && HumanController::localController_s->controllableEntity_->getGametype())323 HumanController::localController_s->controllableEntity_->getGametype()->addBots(amount);324 }325 326 void HumanController::killBots(unsigned int amount)327 {328 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_ && HumanController::localController_s->controllableEntity_->getGametype())329 HumanController::localController_s->controllableEntity_->getGametype()->killBots(amount);330 }331 332 318 Pawn* HumanController::getLocalControllerEntityAsPawn() 333 319 { -
code/trunk/src/orxonox/controllers/HumanController.h
r9979 r10624 83 83 static void FFChangeMode(); 84 84 85 static void addBots(unsigned int amount);86 static void killBots(unsigned int amount = 0);87 88 85 static void pauseControl(); // tolua_export 89 86 static void resumeControl(); // tolua_export -
code/trunk/src/orxonox/controllers/NewHumanController.cc
r10216 r10624 37 37 38 38 #include "core/CoreIncludes.h" 39 #include "core/command/ConsoleCommand .h"39 #include "core/command/ConsoleCommandIncludes.h" 40 40 #include "core/input/KeyBinder.h" 41 41 #include "core/input/KeyBinderManager.h"
Note: See TracChangeset
for help on using the changeset viewer.