Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 14, 2008, 1:47:33 AM (15 years ago)
Author:
landauf
Message:

fixed Backlight initialization with a workaround, but there are still strange crashes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy2/src/orxonox/objects/worldentities/Backlight.h

    r2182 r2207  
    3333#include "Billboard.h"
    3434#include "objects/Tickable.h"
     35#include "tools/Timer.h"
    3536
    3637namespace orxonox
     
    5960                { return this->lifetime_; }
    6061
     62            inline void setTurnOffTime(float turnofftime)
     63                { this->turnofftime_ = turnofftime; }
     64            inline float getTurnOffTime() const
     65                { return this->turnofftime_; }
     66
    6167            inline void setLength(float length)
    6268                { this->length_ = length; this->update_length(); }
     
    7480                { return this->trailmaterial_; }
    7581
    76         protected:
    77             virtual void notifyAttached();
    78 
    7982        private:
     83            void stopturnoff();
    8084            virtual void changedColour();
    8185            void update_width();
     
    9094            float length_;
    9195            float lifetime_;
     96            float turnofftime_;
     97            bool bTurningOff_;
    9298            size_t maxelements_;
    9399            std::string trailmaterial_;
     100            char tickcount_;
     101            Timer<Backlight> turnofftimer_;
    94102    };
    95103
Note: See TracChangeset for help on using the changeset viewer.