- Timestamp:
- Sep 27, 2009, 7:28:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/orxonox/controllers/HumanController.cc
r5738 r5813 36 36 #include "infos/PlayerInfo.h" 37 37 #include "overlays/Map.h" 38 #include "Radar.h" 39 #include "Scene.h" 38 40 39 41 namespace orxonox … … 56 58 SetConsoleCommand(HumanController, dropItems, true); 57 59 SetConsoleCommand(HumanController, useItem, true); 60 SetConsoleCommand(HumanController, cycleNavigationFocus, true); 61 SetConsoleCommand(HumanController, releaseNavigationFocus, true); 58 62 59 63 CreateUnloadableFactory(HumanController); … … 200 204 return NULL; 201 205 } 206 207 void HumanController::cycleNavigationFocus() 208 { 209 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_) 210 HumanController::localController_s->controllableEntity_->getScene()->getRadar()->cycleFocus(); 211 } 212 213 void HumanController::releaseNavigationFocus() 214 { 215 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_) 216 HumanController::localController_s->controllableEntity_->getScene()->getRadar()->releaseFocus(); 217 } 202 218 }
Note: See TracChangeset
for help on using the changeset viewer.