- Timestamp:
- Nov 9, 2015, 5:55:42 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/fabienHS15/src/orxonox/weaponsystem/ReplenishingMunition.h
r10688 r10791 53 53 ReplenishingMunition(Context* context); 54 54 virtual ~ReplenishingMunition() {} 55 56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 57 55 58 virtual float getProgress(); 56 inline float getReplenishingMunitionAmount() const 57 { return replenishMunitionAmount_; } 59 inline float getReplenishAmount() const 60 { return replenishAmount_; } 61 inline float getReplenishInterval() const 62 { return replenishInterval_; } 58 63 59 64 protected: 60 65 float replenishInterval_; //!< The interval in which the munition is replenished. 61 unsigned int replenish MunitionAmount_; //!< The amount by which it is replenished.66 unsigned int replenishAmount_; //!< The amount by which it is replenished. 62 67 63 68 private: … … 66 71 67 72 Timer replenishingTimer_; //!< Timer to do the replenishing. 73 74 inline void setReplenishAmount(unsigned int replenishAmount) 75 { this->replenishAmount_ = replenishAmount; } 76 inline void setReplenishInterval(float replenishInterval) 77 { this->replenishInterval_ = replenishInterval; } 68 78 }; 69 79 }
Note: See TracChangeset
for help on using the changeset viewer.