Changeset 2900 for code/branches/pickups/src/orxonox/objects/controllers
- Timestamp:
- Apr 6, 2009, 3:53:50 PM (16 years ago)
- Location:
- code/branches/pickups
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickups
-
Property
svn:ignore
set to
build
dependencies
-
Property
svn:ignore
set to
-
code/branches/pickups/src/orxonox/objects/controllers/HumanController.cc
r2662 r2900 48 48 SetConsoleCommand(HumanController, boost, true).keybindMode(KeybindMode::OnHold); 49 49 SetConsoleCommand(HumanController, greet, true); 50 SetConsoleCommand(HumanController, use, true);51 50 SetConsoleCommand(HumanController, switchCamera, true); 52 51 SetConsoleCommand(HumanController, mouseLook, true); … … 55 54 SetConsoleCommand(HumanController, killBots, true).defaultValues(0); 56 55 SetConsoleCommand(HumanController, dropItems, true); 56 SetConsoleCommand(HumanController, useItem, true); 57 57 58 58 CreateUnloadableFactory(HumanController); … … 132 132 } 133 133 134 void HumanController::use()135 {136 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_)137 HumanController::localController_s->controllableEntity_->use();138 }139 140 134 void HumanController::switchCamera() 141 135 { … … 160 154 } 161 155 156 void HumanController::useItem() 157 { 158 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_) 159 HumanController::localController_s->controllableEntity_->useItem(); 160 } 161 162 162 void HumanController::addBots(unsigned int amount) 163 163 { -
code/branches/pickups/src/orxonox/objects/controllers/HumanController.h
r2662 r2900 56 56 static void boost(); 57 57 static void greet(); 58 static void use();59 58 static void switchCamera(); 60 59 static void mouseLook(); 61 60 static void dropItems(); 61 static void useItem(); 62 62 63 63 static void suicide();
Note: See TracChangeset
for help on using the changeset viewer.