Changeset 7533 for code/trunk/src/orxonox/controllers
- Timestamp:
- Oct 13, 2010, 11:35:18 AM (14 years ago)
- Location:
- code/trunk/src/orxonox/controllers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/controllers/HumanController.cc
r7284 r7533 56 56 SetConsoleCommand("HumanController", "addBots", &HumanController::addBots ).addShortcut().defaultValues(1); 57 57 SetConsoleCommand("HumanController", "killBots", &HumanController::killBots ).addShortcut().defaultValues(0); 58 SetConsoleCommand("HumanController", "dropItems", &HumanController::dropItems ).addShortcut();59 SetConsoleCommand("HumanController", "useItem", &HumanController::useItem ).addShortcut();60 58 SetConsoleCommand("HumanController", "cycleNavigationFocus", &HumanController::cycleNavigationFocus).addShortcut(); 61 59 SetConsoleCommand("HumanController", "releaseNavigationFocus", &HumanController::releaseNavigationFocus).addShortcut(); … … 202 200 } 203 201 204 void HumanController::useItem()205 {206 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_)207 HumanController::localController_s->controllableEntity_->useItem();208 }209 210 202 void HumanController::addBots(unsigned int amount) 211 203 { … … 218 210 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_ && HumanController::localController_s->controllableEntity_->getGametype()) 219 211 HumanController::localController_s->controllableEntity_->getGametype()->killBots(amount); 220 }221 222 void HumanController::dropItems()223 {224 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_)225 HumanController::localController_s->controllableEntity_->dropItems();226 212 } 227 213 -
code/trunk/src/orxonox/controllers/HumanController.h
r6417 r7533 68 68 static void switchCamera(); 69 69 static void mouseLook(); 70 static void dropItems();71 static void useItem();72 70 static void cycleNavigationFocus(); 73 71 static void releaseNavigationFocus();
Note: See TracChangeset
for help on using the changeset viewer.