- Timestamp:
- Jan 4, 2016, 10:13:21 AM (8 years ago)
- Location:
- code/branches/presentationHS15
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationHS15
- Property svn:mergeinfo changed
/code/branches/fabienHS15 merged: 11027,11033
- Property svn:mergeinfo changed
-
code/branches/presentationHS15/src/orxonox/worldentities/pawns/Pawn.h
r10970 r11034 64 64 65 65 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 66 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode); 66 67 virtual void tick(float dt); 67 68 … … 133 134 134 135 virtual void decreaseShieldRechargeCountdownTime(float dt); 136 137 /** @brief Sets the state of the pawns vulnerability. @param bVulnerable */ 138 inline void setVulnerable(bool bVulnerable) 139 { 140 if (this->bVulnerable_ != bVulnerable) 141 { 142 this->bVulnerable_ = bVulnerable; 143 this->changedVulnerability(); 144 } 145 } 146 /** @brief Returns the state of the pawns vulnerability. @return The state of the vulnerability */ 147 inline const bool& isVulnerable() const { return this->bVulnerable_; } 148 /** @brief This function gets called if the vulnerability of the pawn changes. */ 149 virtual void changedVulnerability(); 135 150 136 151 inline ControllableEntity* getLastHitOriginator() const … … 219 234 220 235 bool bAlive_; 236 bool bVulnerable_; ///< If false the pawn may not ged damaged 221 237 222 238 virtual std::vector<PickupCarrier*>* getCarrierChildren(void) const
Note: See TracChangeset
for help on using the changeset viewer.