- Timestamp:
- Dec 9, 2008, 2:16:49 AM (16 years ago)
- Location:
- code/branches/objecthierarchy2/src/orxonox/objects/worldentities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/ControllableEntity.h
r2254 r2362 64 64 virtual void rotatePitch(const Vector2& value) {} 65 65 virtual void rotateRoll(const Vector2& value) {} 66 67 inline void moveFrontBack(float value) 68 { this->moveFrontBack(Vector2(value, 0)); } 69 inline void moveRightLeft(float value) 70 { this->moveRightLeft(Vector2(value, 0)); } 71 inline void moveUpDown(float value) 72 { this->moveUpDown(Vector2(value, 0)); } 73 74 inline void rotateYaw(float value) 75 { this->rotateYaw(Vector2(value, 0)); } 76 inline void rotatePitch(float value) 77 { this->rotatePitch(Vector2(value, 0)); } 78 inline void rotateRoll(float value) 79 { this->rotateRoll(Vector2(value, 0)); } 66 80 67 81 virtual void fire() {} -
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns/Spectator.cc
r2254 r2362 31 31 32 32 #include "core/CoreIncludes.h" 33 #include "core/ConfigValueIncludes.h" 33 34 #include "core/Core.h" 34 35 #include "objects/worldentities/Model.h" … … 49 50 RegisterObject(Spectator); 50 51 51 this->speed_ = 100;52 this->speed_ = 200; 52 53 this->rotationSpeed_ = 3; 53 54 … … 68 69 this->bGreeting_ = false; 69 70 71 this->setConfigValues(); 70 72 this->registerVariables(); 71 73 } … … 84 86 } 85 87 88 void Spectator::setConfigValues() 89 { 90 SetConfigValue(speed_, 200.0f); 91 SetConfigValue(rotationSpeed_, 3.0f); 92 } 93 86 94 void Spectator::registerVariables() 87 95 { … … 137 145 { 138 146 ControllableEntity::startLocalHumanControl(); 139 // if (this->hasLocalController())140 // this->testmesh_->setVisible(false);141 147 } 142 148 -
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns/Spectator.h
r2254 r2362 42 42 virtual ~Spectator(); 43 43 44 void setConfigValues(); 44 45 void registerVariables(); 45 46 virtual void tick(float dt);
Note: See TracChangeset
for help on using the changeset viewer.