Changeset 8855 for code/trunk/src/orxonox/worldentities/pawns/Pawn.h
- Timestamp:
- Aug 22, 2011, 3:05:26 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/worldentities/pawns/Pawn.h
r8706 r8855 75 75 76 76 inline float getShieldHealth() 77 { return this->shieldHealth_; }77 { return this->shieldHealth_; } 78 78 79 79 inline void addShieldHealth(float amount) 80 { this->setShieldHealth(this->shieldHealth_ + amount); }80 { this->setShieldHealth(this->shieldHealth_ + amount); } 81 81 82 82 inline bool hasShield() 83 { return (this->getShieldHealth() > 0); }83 { return (this->getShieldHealth() > 0); } 84 84 85 85 virtual void setMaxShieldHealth(float maxshieldhealth); … … 98 98 99 99 inline void setShieldAbsorption(float shieldAbsorption) 100 { this->shieldAbsorption_ = shieldAbsorption; }100 { this->shieldAbsorption_ = shieldAbsorption; } 101 101 inline float getShieldAbsorption() 102 { return this->shieldAbsorption_; }102 { return this->shieldAbsorption_; } 103 103 104 104 // TODO: Rename to shieldRechargeRate … … 112 112 113 113 inline void resetReloadCountdown() 114 { this->reloadWaitCountdown_ = 0; }114 { this->reloadWaitCountdown_ = 0; } 115 115 116 116 inline void startReloadCountdown() 117 { this->reloadWaitCountdown_ = this->getReloadWaitTime(); } // TODO: Implement in Projectile.cc117 { this->reloadWaitCountdown_ = this->getReloadWaitTime(); } // TODO: Implement in Projectile.cc 118 118 119 119 virtual void decreaseReloadCountdownTime(float dt);
Note: See TracChangeset
for help on using the changeset viewer.