Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 24, 2008, 1:50:47 AM (17 years ago)
Author:
landauf
Message:

Update your media repository and delete keybindings.ini if you want to use boost (space).

  • Added new class "Engine" to control the speed of a SpaceShip (Engine is an Item, MultiStateEngine is a specialized version of Engine)
  • Added FadingBillboard, a billboard with the ability to fade in and out smoothly when activated/deactivated.
  • Several changes in Backlight, it's now a child of FadingBillboard
  • Some changes concerning local control in ControllableEntity
  • Fixed a bug in WorldEntity caused by different destruction order of attached objects on server and client
  • Added a "MainState" to BaseObject. An object has several states (activity, visibility, …) and one of it can be defined as "MainState" in the XML file. Other objects can change this state without knowing which state it really is (used by MultiStateEngine).
File:
1 edited

Legend:

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

    r2212 r2254  
    3131
    3232#include "OrxonoxPrereqs.h"
    33 #include "Billboard.h"
    34 #include "objects/Tickable.h"
    35 #include "tools/Timer.h"
     33#include "FadingBillboard.h"
    3634
    3735namespace orxonox
    3836{
    39     class _OrxonoxExport Backlight : public Billboard, public Tickable
     37    class _OrxonoxExport Backlight : public FadingBillboard
    4038    {
    4139        public:
     
    4745
    4846            virtual void tick(float dt);
    49             virtual void changedActivity();
    5047            virtual void changedVisibility();
    5148
     
    5956            inline float getLifetime() const
    6057                { return this->lifetime_; }
    61 
    62             inline void setTurnOffTime(float turnofftime)
    63                 { this->turnofftime_ = turnofftime; }
    64             inline float getTurnOffTime() const
    65                 { return this->turnofftime_; }
    6658
    6759            inline void setLength(float length)
     
    8375
    8476        private:
    85             void stopturnoff();
     77            virtual void startturnonoff();
     78            virtual void stopturnonoff();
     79            virtual void poststopturnonoff();
    8680            virtual void changedColour();
    8781            void update_width();
     
    9690            float length_;
    9791            float lifetime_;
    98             float turnofftime_;
    99             bool bTurningOff_;
    10092            size_t maxelements_;
    10193            std::string trailmaterial_;
    10294            char tickcount_;
    103             Timer<Backlight> turnofftimer_;
    10495    };
    10596}
Note: See TracChangeset for help on using the changeset viewer.