Changeset 2361 for code/branches/objecthierarchy2/src/orxonox/objects
- Timestamp:
- Dec 9, 2008, 2:07:24 AM (16 years ago)
- Location:
- code/branches/objecthierarchy2/src/orxonox/objects
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy2/src/orxonox/objects/Radar.cc
r2256 r2361 99 99 void Radar::tick(float dt) 100 100 { 101 SUPER(Radar, tick, dt); 102 101 103 if (this->focus_ != *(this->itFocus_)) 102 104 { -
code/branches/objecthierarchy2/src/orxonox/objects/Scene.cc
r2171 r2361 167 167 void Scene::tick(float dt) 168 168 { 169 SUPER(Scene, tick, dt); 170 169 171 if (!Core::showsGraphics()) 170 172 { -
code/branches/objecthierarchy2/src/orxonox/objects/gametypes/Gametype.cc
r2171 r2361 62 62 void Gametype::tick(float dt) 63 63 { 64 SUPER(Gametype, tick, dt); 65 64 66 if (this->bStartCountdownRunning_ && !this->bStarted_) 65 67 this->startCountdown_ -= dt; … … 150 152 if (this->spawnpoints_.size() > 0) 151 153 { 152 srand(time(0));153 rnd();154 155 154 unsigned int randomspawn = (unsigned int)rnd(this->spawnpoints_.size()); 156 155 unsigned int index = 0; -
code/branches/objecthierarchy2/src/orxonox/objects/items/Engine.cc
r2350 r2361 144 144 return; 145 145 146 SUPER(Engine, tick, dt); 147 146 148 const Vector3& direction = this->getDirection(); 147 149 Vector3 velocity = this->ship_->getVelocity(); -
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/BlinkingBillboard.cc
r2171 r2361 75 75 void BlinkingBillboard::tick(float dt) 76 76 { 77 SUPER(BlinkingBillboard, tick, dt); 78 77 79 if (Core::isMaster() && this->isActive()) 78 80 { -
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/Camera.cc
r2350 r2361 94 94 void Camera::tick(float dt) 95 95 { 96 SUPER(Camera, tick, dt); 96 97 /* 97 98 // this stuff here may need some adjustments -
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/ControllableEntity.cc
r2256 r2361 232 232 if (this->isActive()) 233 233 { 234 SUPER(ControllableEntity, tick, dt); 235 234 236 this->velocity_ += (dt * this->acceleration_); 235 237 this->node_->translate(dt * this->velocity_, Ogre::Node::TS_LOCAL); -
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/FadingBillboard.cc
r2254 r2361 140 140 void FadingBillboard::tick(float dt) 141 141 { 142 SUPER(FadingBillboard, tick, dt); 143 142 144 if (this->changedirection_ > 0 && (this->fadedColour_.a < this->getColour().a)) 143 145 { -
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/MovableEntity.cc
r2171 r2361 74 74 if (this->isActive()) 75 75 { 76 SUPER(MovableEntity, tick, dt); 77 76 78 this->velocity_ += (dt * this->acceleration_); 77 79 this->node_->translate(dt * this->velocity_); -
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/triggers/Trigger.cc
r2171 r2361 106 106 if (!this->BaseObject::isActive()) 107 107 return; 108 109 SUPER(Trigger, tick, dt); 108 110 109 111 bool newTriggered = this->isTriggered() ^ this->bInvertMode_;
Note: See TracChangeset
for help on using the changeset viewer.