Changeset 6159 for code/branches/presentation2/src/orxonox
- Timestamp:
- Nov 26, 2009, 2:09:40 PM (15 years ago)
- Location:
- code/branches/presentation2/src/orxonox/controllers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/controllers/HumanController.cc
r6149 r6159 95 95 } 96 96 97 void HumanController::moveFrontBack(const Vector2& value) 98 { 99 if (HumanController::localController_s) 100 HumanController::localController_s->frontback(value); 101 } 102 97 103 void HumanController::frontback(const Vector2& value) 98 104 { … … 137 143 } 138 144 145 void HumanController::rotateYaw(const Vector2& value) 146 { 147 if (HumanController::localController_s) 148 HumanController::localController_s->yaw(value); 149 } 150 151 void HumanController::rotatePitch(const Vector2& value) 152 { 153 if (HumanController::localController_s) 154 HumanController::localController_s->pitch(value); 155 } 156 139 157 void HumanController::rotateRoll(const Vector2& value) 140 158 { 141 159 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_) 142 160 HumanController::localController_s->controllableEntity_->rotateRoll(value); 161 } 162 163 void HumanController::fire(unsigned int firemode) 164 { 165 if (HumanController::localController_s) 166 HumanController::localController_s->doFire(firemode); 143 167 } 144 168 -
code/branches/presentation2/src/orxonox/controllers/HumanController.h
r6149 r6159 45 45 virtual void tick(float dt); 46 46 47 static void moveFrontBack(const Vector2& value) { HumanController::localController_s->frontback(value); }47 static void moveFrontBack(const Vector2& value); 48 48 static void moveRightLeft(const Vector2& value); 49 49 static void moveUpDown(const Vector2& value); 50 50 51 static void rotateYaw(const Vector2& value) { HumanController::localController_s->yaw(value); }52 static void rotatePitch(const Vector2& value) { HumanController::localController_s->pitch(value); }51 static void rotateYaw(const Vector2& value); 52 static void rotatePitch(const Vector2& value); 53 53 static void rotateRoll(const Vector2& value); 54 54 … … 57 57 virtual void pitch(const Vector2& value); 58 58 59 static void fire(unsigned int firemode) { HumanController::localController_s->doFire(firemode); }59 static void fire(unsigned int firemode); 60 60 virtual void doFire(unsigned int firemode); 61 61 static void reload();
Note: See TracChangeset
for help on using the changeset viewer.