- Timestamp:
- Dec 9, 2008, 2:16:49 AM (16 years ago)
- Location:
- code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.