Changeset 10672 in orxonox.OLD for branches/vs-enhencements/src/world_entities/space_ships/space_ship.h
- Timestamp:
- Jun 5, 2007, 11:01:09 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/vs-enhencements/src/world_entities/space_ships/space_ship.h
r10671 r10672 65 65 66 66 //!< functions for XML loading 67 void setReactor(float output) {this->reactorOutput = output; };68 void setEngine( float speedBase) {this->engineSpeedBase = speedBase; };67 void loadReactor(float output) {this->reactorOutput = output; }; 68 void loadEngine( float speedBase) {this->engineSpeedBase = speedBase; }; 69 69 void loadEnergyShare(float shield, float weapon, float engine) 70 70 { float tmp = shield + weapon + engine; if (unlikely (tmp > 1)) { tmp = 1/tmp; } … … 73 73 this->weaponEnergyShare = weapon * tmp; 74 74 this->engineEnergyShare = engine * tmp; }; 75 inline void setWeapon(float regen) { this->weaponEnergyRegen = regen; };75 inline void loadWeapon(float regen) { this->weaponEnergyRegen = regen; }; 76 76 77 77 void addWeaponToSlot(int wm, int config, int slot, const std::string& weaponName);
Note: See TracChangeset
for help on using the changeset viewer.