- Timestamp:
- Nov 8, 2008, 7:58:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem2/src/orxonox/objects/quest/AddReward.h
r2146 r2159 27 27 */ 28 28 29 /** 30 @file AddReward.h 31 @brief 32 Definition of the AddReward class. 33 */ 34 29 35 #ifndef _AddReward_H__ 30 36 #define _AddReward_H__ … … 51 57 virtual ~AddReward(); 52 58 53 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 59 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a AddReward object through XML. 54 60 55 61 virtual bool invoke(ControllableEntity* player); //!< Invokes the effect. 56 62 57 63 private: 58 std::list<Rewardable*> rewards_; 64 std::list<Rewardable*> rewards_; //!< A list of rewards to be added to the player invoking the effect. 59 65 60 void initialize(void); //!< Initializes the object. 61 62 inline void addRewardable(Rewardable* reward) 66 inline void addRewardable(Rewardable* reward) //!< Add a rewardable object to the list of objects to be awarded to the player invoking the effect. 63 67 { this->rewards_.push_back(reward); } 64 const Rewardable* getRewardables(unsigned int index) const; 68 const Rewardable* getRewardables(unsigned int index) const; //!< Returns the rewardable object at the given index. 65 69 66 70 };
Note: See TracChangeset
for help on using the changeset viewer.