Changeset 11071 for code/trunk/src/orxonox/items/ShipPart.h
- Timestamp:
- Jan 17, 2016, 10:29:21 PM (8 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/items/ShipPart.h
r10624 r11071 47 47 virtual ~ShipPart(); 48 48 49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 50 50 51 51 virtual void handleHit(float damage, float healthdamage, float shielddamage, Pawn* originator); … … 64 64 PartDestructionEvent* getDestructionEvent(unsigned int index); 65 65 66 virtual void setDamageAbsorption(float value); 67 inline float getDamageAbsorption() 66 inline void setDamageAbsorption(float value) 67 { this->damageAbsorption_ = value; } 68 inline float getDamageAbsorption() const 68 69 { return this->damageAbsorption_; } 69 70 70 71 void setParent(ModularSpaceShip* ship); 71 inline ModularSpaceShip* getParent() 72 inline ModularSpaceShip* getParent() const 72 73 { return this->parent_; } 73 74 74 75 inline void setEventExecution(bool var) 75 76 { this->eventExecution_ = var; } 76 inline bool isEventExecution() 77 inline bool isEventExecution() const 77 78 { return this->eventExecution_; } 78 79 79 virtual void setHealth(float health); 80 inline void setHealth(float health) 81 { this->health_ = health; } 80 82 inline void addHealth(float health) 81 83 { this->setHealth(this->health_ + health); }
Note: See TracChangeset
for help on using the changeset viewer.