Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 13, 2016, 10:40:06 PM (8 years ago)
Author:
landauf
Message:

made some functions non-virtual

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v3/src/orxonox/worldentities/pawns/Pawn.h

    r11059 r11060  
    7171
    7272
    73             virtual void setHealth(float health);
     73            void setHealth(float health);
    7474            inline void addHealth(float health)
    7575                { this->setHealth(this->health_ + health); }
     
    8989                { return this->initialHealth_; }
    9090
    91             virtual void setShieldHealth(float shieldHealth);
     91            void setShieldHealth(float shieldHealth);
    9292
    9393            inline float getShieldHealth()
     
    100100                { return (this->getShieldHealth() > 0); }
    101101
    102             virtual void setMaxShieldHealth(float maxshieldhealth);
     102            void setMaxShieldHealth(float maxshieldhealth);
    103103            inline float getMaxShieldHealth() const
    104104                { return this->maxShieldHealth_; }
     
    119119                { return this->shieldAbsorption_; }
    120120
    121             virtual void setShieldRechargeRate(float shieldRechargeRate);
     121            void setShieldRechargeRate(float shieldRechargeRate);
    122122            inline float getShieldRechargeRate() const
    123123                { return this->shieldRechargeRate_; }
    124124
    125             virtual void setShieldRechargeWaitTime(float shieldRechargeWaitTime);
     125            void setShieldRechargeWaitTime(float shieldRechargeWaitTime);
    126126            inline float getShieldRechargeWaitTime() const
    127127                { return this->shieldRechargeWaitTime_; }
     
    133133                { this->shieldRechargeWaitCountdown_ = this->getShieldRechargeWaitTime(); } // TODO: Implement in Projectile.cc
    134134
    135             virtual void decreaseShieldRechargeCountdownTime(float dt);
     135            void decreaseShieldRechargeCountdownTime(float dt);
    136136
    137137            /** @brief Sets the state of the pawns vulnerability. @param bVulnerable */
     
    215215            const std::string& getExplosionSound();
    216216
    217             virtual const WeaponSystem* getWeaponSystem() const
     217            inline const WeaponSystem* getWeaponSystem() const
    218218                { return this->weaponSystem_; }
    219219
Note: See TracChangeset for help on using the changeset viewer.