Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 20, 2006, 12:02:01 PM (17 years ago)
Author:
muellmic
Message:

some interface hacks

File:
1 edited

Legend:

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

    r10117 r10120  
    7575    virtual void damage(float pDamage, float eDamage);  //!< pDamage physical damage, eDamage electronic damage
    7676
     77    //included by Michel: ((
    7778    virtual void enterPlaymode(Playable::Playmode playmode);
    78     void setPlaymodeXML(const std::string& playmode);
     79    void setPlaymodeXML(const std::string& playmode); //recieves the playmode from a string (useful for script implementation)
    7980    virtual void movement (float dt);
     81
     82    //))
    8083
    8184    void nextWeaponConfig();
     
    9497
    9598    inline bool systemFailure() {  return (this->electronicCur < float(rand())/float(RAND_MAX) * this->electronicTH); };
     99
     100    void updateElectronicWidget();
     101    void updateShieldWidget();
    96102
    97103    //WeaponManager         weaponMan;      //!< the primary weapon manager: managing a list of energy weapons to wepaon-slot mapping
     
    107113    float       shieldTH;           //!< shield threshhold for reactivation
    108114    bool        shieldActive;       //!< wheather the shield is working
     115    OrxGui::GLGuiEnergyWidgetVertical* shieldWidget; //!< holds the widget that shows the shield bar
    109116
    110117    float       armorCur;           //!< current armor
    111118    float       armorMax;           //!< maximum armor
    112119    float       armorRegen;         //!< armor regeneration per tick (usable on bioships?)
     120    //note that the armor widget is set on the health- widget in world- entity (see in player.cc)
    113121
    114122    float       electronicCur;      //!< current electronic
     
    116124    float       electronicRegen;    //!< electronic regenration rate per tick
    117125    float       electronicTH;       //!< Threshhold for electronic failure
     126    OrxGui::GLGuiEnergyWidgetVertical* electronicWidget; //!< holds the widget that shows the electronic bar
    118127
    119128    float       engineSpeedCur;     //!< speed output for movement = speed base + energy share part
Note: See TracChangeset for help on using the changeset viewer.