Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 28, 2011, 3:55:04 PM (13 years ago)
Author:
simonmie
Message:

First try of self-reloading shield

File:
1 edited

Legend:

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

    r7889 r8145  
    5353            inline bool isAlive() const
    5454                { return this->bAlive_; }
     55
     56///////////////////////////////// me
     57            virtual void setReloadRate(float reloadrate);
     58            inline float getReloadRate() const
     59                { return this->reloadRate_; }
     60
     61            inline void addShieldHealth(float amount)
     62            { this->setShieldHealth(this->shieldHealth_ + amount); }
     63
     64///////////////////////////////// end me
    5565
    5666            virtual void setHealth(float health);
     
    151161                { return NULL; }
    152162
     163/////////////////////////// me
     164            float reloadRate_;
     165
     166////////////////////////// end me
     167
    153168            float health_;
    154169            float maxHealth_;
Note: See TracChangeset for help on using the changeset viewer.