Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 3, 2006, 11:55:31 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: better 2d-playable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/space_ships/spacecraft_2d.h

    r9061 r9074  
    2323    virtual void loadParams(const TiXmlElement* root);
    2424    virtual void setPlayDirection(const Quaternion& rot, float speed = 0.0f);
    25     void setTravelDirecton(const Quaternion& rot, float speed = 0.0);
    26     void setTravelSpeed(float travelSpeed);
    27 
    2825    virtual void enter();
    2926    virtual void leave();
    30 
    31 
    3227
    3328    virtual void postSpawn();
     
    3934
    4035    virtual void process(const Event &event);
     36
     37  protected:
     38    virtual void enterPlaymode(Playable::Playmode playmode);
    4139
    4240  private:
     
    5452
    5553
     54    PNode*                travelNode;
    5655
    57     PNode                 travelNode;
    58     float                 travelSpeed;
    59 
     56    PNode                 cameraNode;
    6057    float                 cameraLook;
    6158    float                 rotation;
     
    6360   // Vector                velocity;           //!< the velocity of the Spacecraft2D.
    6461    Quaternion            direction;          //!< the direction of the Spacecraft2D.
     62    float                 travelSpeed;        //!< the current speed of the Hove (to make soft movement)
    6563    float                 acceleration;       //!< the acceleration of the Spacecraft2D.
    66     float                 maxSpeed;           //!< The Maximal speed of the Spacecraft2D.
     64    float                 airFriction;        //!< AirFriction.
    6765
    68     float                 altitude;           //!< The height in the Entity.
     66    float                 airViscosity;
    6967
    7068    ParticleEmitter*      burstEmitter;
Note: See TracChangeset for help on using the changeset viewer.