Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 18, 2007, 12:08:19 AM (17 years ago)
Author:
muellmic
Message:

traveldistance calculated dynamically now, but calculations aren't correct yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/space_ships/space_ship.h

    r10274 r10291  
    7878    virtual void damage(float pDamage, float eDamage);  //!< pDamage physical damage, eDamage electronic damage
    7979
    80     //included by Michel: ((
     80    //included by Michel:
    8181    virtual void enterPlaymode(Playable::Playmode playmode);
    8282    void setPlaymodeXML(const std::string& playmode); //recieves the playmode from a string (useful for script implementation)
     83    inline void setActionWidthPercentage(float f) {this->actionWidthPercentage = f; updateTravelDistance();};
     84    void updateTravelDistance();
    8385    virtual void movement (float dt);
    8486
    85     //))
     87    //
    8688
    8789    void nextWeaponConfig();
     
    175177    Vector2D              travelDistancePlus;     //!< Travel-Distance away from the TravelNode
    176178    Vector2D              travelDistanceMinus;
     179    bool                  isTravelDistanceInit;
     180
     181    float                 actionWidthPercentage;
    177182
    178183// Camera
Note: See TracChangeset for help on using the changeset viewer.