Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 24, 2008, 1:50:47 AM (15 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/ControllableEntity.h

    r2087 r2254  
    6868            virtual void altFire() {}
    6969
     70            virtual void boost() {}
    7071            virtual void greet() {}
    7172            virtual void use() {}
     
    123124                { return this->cameraPositionTemplate_; }
    124125
     126            inline bool hasLocalController() const
     127                { return this->bHasLocalController_; }
     128            inline bool hasHumanController() const
     129                { return this->bHasHumanController_; }
     130
    125131        protected:
    126             virtual void startLocalControl();
    127             virtual void stopLocalControl();
     132            virtual void startLocalHumanControl();
     133            virtual void stopLocalHumanControl();
    128134
    129135            inline void setHudTemplate(const std::string& name)
    130136                { this->hudtemplate_ = name; }
    131 
    132             inline bool isLocallyControlled() const
    133                 { return this->bControlled_; }
    134137
    135138            Vector3 acceleration_;
     
    154157            Vector3 velocity_;
    155158
    156             bool bControlled_;
     159            bool bHasLocalController_;
     160            bool bHasHumanController_;
     161
    157162            Vector3 server_position_;
    158163            Vector3 client_position_;
Note: See TracChangeset for help on using the changeset viewer.