Changeset 10120 in orxonox.OLD for branches/playability/src/world_entities/space_ships/space_ship.h
- Timestamp:
- Dec 20, 2006, 12:02:01 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/space_ships/space_ship.h
r10117 r10120 75 75 virtual void damage(float pDamage, float eDamage); //!< pDamage physical damage, eDamage electronic damage 76 76 77 //included by Michel: (( 77 78 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) 79 80 virtual void movement (float dt); 81 82 //)) 80 83 81 84 void nextWeaponConfig(); … … 94 97 95 98 inline bool systemFailure() { return (this->electronicCur < float(rand())/float(RAND_MAX) * this->electronicTH); }; 99 100 void updateElectronicWidget(); 101 void updateShieldWidget(); 96 102 97 103 //WeaponManager weaponMan; //!< the primary weapon manager: managing a list of energy weapons to wepaon-slot mapping … … 107 113 float shieldTH; //!< shield threshhold for reactivation 108 114 bool shieldActive; //!< wheather the shield is working 115 OrxGui::GLGuiEnergyWidgetVertical* shieldWidget; //!< holds the widget that shows the shield bar 109 116 110 117 float armorCur; //!< current armor 111 118 float armorMax; //!< maximum armor 112 119 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) 113 121 114 122 float electronicCur; //!< current electronic … … 116 124 float electronicRegen; //!< electronic regenration rate per tick 117 125 float electronicTH; //!< Threshhold for electronic failure 126 OrxGui::GLGuiEnergyWidgetVertical* electronicWidget; //!< holds the widget that shows the electronic bar 118 127 119 128 float engineSpeedCur; //!< speed output for movement = speed base + energy share part
Note: See TracChangeset
for help on using the changeset viewer.