Changeset 2406 for code/branches/objecthierarchy2/src/orxonox/objects
- Timestamp:
- Dec 11, 2008, 3:06:33 AM (16 years ago)
- Location:
- code/branches/objecthierarchy2/src/orxonox/objects/worldentities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/Backlight.cc
r2350 r2406 135 135 if (this->ribbonTrail_ && this->tickcount_ >= 2) 136 136 { 137 this->ribbonTrail_->setWidthChange(0, this->width_ * this->getWorldScale() / this->lifetime_ /* * Backlight::timeFactor_s*/);138 this->ribbonTrail_->setColourChange(0, 0, 0, 0, 1.0f / this->lifetime_ /* * Backlight::timeFactor_s*/);137 this->ribbonTrail_->setWidthChange(0, this->width_ * this->getWorldScale() / this->lifetime_ * this->getTimeFactor()); 138 this->ribbonTrail_->setColourChange(0, 0, 0, 0, 1.0f / this->lifetime_ * this->getTimeFactor()); 139 139 } 140 140 } … … 227 227 } 228 228 } 229 230 void Backlight::changedTimeFactor(float factor_new, float factor_old) 231 { 232 this->update_lifetime(); 233 } 229 234 } -
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/Backlight.h
r2254 r2406 32 32 #include "OrxonoxPrereqs.h" 33 33 #include "FadingBillboard.h" 34 #include "gamestates/GSRoot.h" 34 35 35 36 namespace orxonox 36 37 { 37 class _OrxonoxExport Backlight : public FadingBillboard 38 class _OrxonoxExport Backlight : public FadingBillboard, public TimeFactorListener 38 39 { 39 40 public: … … 74 75 virtual void changedScale(); 75 76 77 protected: 78 virtual void changedTimeFactor(float factor_new, float factor_old); 79 76 80 private: 77 81 virtual void startturnonoff();
Note: See TracChangeset
for help on using the changeset viewer.