Changeset 2917 for code/branches/pickups2/src/orxonox/objects/controllers
- Timestamp:
- Apr 15, 2009, 5:03:58 PM (16 years ago)
- Location:
- code/branches/pickups2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickups2
- Property svn:mergeinfo changed
/code/branches/pickups merged: 2828,2831,2864,2900 -
Property
svn:ignore
set to
build
dependencies
- Property svn:mergeinfo changed
-
code/branches/pickups2/src/orxonox/objects/controllers/HumanController.cc
r2872 r2917 49 49 SetConsoleCommand(HumanController, boost, true).keybindMode(KeybindMode::OnHold); 50 50 SetConsoleCommand(HumanController, greet, true); 51 SetConsoleCommand(HumanController, use, true);52 51 SetConsoleCommand(HumanController, switchCamera, true); 53 52 SetConsoleCommand(HumanController, mouseLook, true); … … 56 55 SetConsoleCommand(HumanController, killBots, true).defaultValues(0); 57 56 SetConsoleCommand(HumanController, dropItems, true); 57 SetConsoleCommand(HumanController, useItem, true); 58 58 59 59 CreateUnloadableFactory(HumanController); … … 133 133 } 134 134 135 void HumanController::use()136 {137 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_)138 HumanController::localController_s->controllableEntity_->use();139 }140 141 135 void HumanController::switchCamera() 142 136 { … … 163 157 } 164 158 159 void HumanController::useItem() 160 { 161 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_) 162 HumanController::localController_s->controllableEntity_->useItem(); 163 } 164 165 165 void HumanController::addBots(unsigned int amount) 166 166 { -
code/branches/pickups2/src/orxonox/objects/controllers/HumanController.h
r2662 r2917 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.