Changeset 5896 for code/branches/core5/src/orxonox/controllers
- Timestamp:
- Oct 6, 2009, 11:12:01 PM (16 years ago)
- Location:
- code/branches/core5/src/orxonox/controllers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/orxonox/controllers/HumanController.cc
r5813 r5896 36 36 #include "infos/PlayerInfo.h" 37 37 #include "overlays/Map.h" 38 #include "sound/SoundManager.h" 38 39 #include "Radar.h" 39 40 #include "Scene.h" … … 77 78 } 78 79 80 void HumanController::tick(float dt) 81 { 82 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_) 83 { 84 if (GameMode::playsSound()) 85 { 86 // Update sound listener 87 SoundManager::getInstance().setListenerPosition(HumanController::localController_s->controllableEntity_->getPosition()); 88 SoundManager::getInstance().setListenerOrientation(HumanController::localController_s->controllableEntity_->getOrientation()); 89 } 90 } 91 } 92 79 93 void HumanController::moveFrontBack(const Vector2& value) 80 94 { -
code/branches/core5/src/orxonox/controllers/HumanController.h
r5813 r5896 31 31 32 32 #include "OrxonoxPrereqs.h" 33 34 #include "tools/interfaces/Tickable.h" 33 35 #include "Controller.h" 34 36 35 37 namespace orxonox 36 38 { 37 class _OrxonoxExport HumanController : public Controller 39 class _OrxonoxExport HumanController : public Controller, public Tickable 38 40 { 39 41 public: 40 42 HumanController(BaseObject* creator); 41 43 virtual ~HumanController(); 44 45 virtual void tick(float dt); 42 46 43 47 static void moveFrontBack(const Vector2& value);
Note: See TracChangeset
for help on using the changeset viewer.