- Timestamp:
- Nov 12, 2008, 1:29:33 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem2/src/orxonox/objects/quest/AddReward.h
r2159 r2191 47 47 /** 48 48 @brief 49 Adds a list of rewards to a player.49 Adds a list of Rewardables to a player. 50 50 @author 51 51 Damian 'Mozork' Frick … … 59 59 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a AddReward object through XML. 60 60 61 virtual bool invoke(ControllableEntity* player); //!< Invokes the effect.61 virtual bool invoke(ControllableEntity* player); //!< Invokes the QuestEffect. 62 62 63 63 private: 64 std::list<Rewardable*> rewards_; //!< A list of rewards to be added to the player invoking the effect.64 std::list<Rewardable*> rewards_; //!< A list of Rewardables to be added to the player invoking the QuestEffect. 65 65 66 inline void addRewardable(Rewardable* reward) //!< Add a rewardable object to the list of objects to be awarded to the player invoking the effect. 66 /** 67 @brief Add a Rewardable object to the list of objects to be awarded to the player invoking the QuestEffect. 68 @param reward Pointer to the Rewardable to be added. 69 */ 70 inline void addRewardable(Rewardable* reward) 67 71 { this->rewards_.push_back(reward); } 68 const Rewardable* getRewardables(unsigned int index) const; //!< Returns the rewardable object at the given index.72 const Rewardable* getRewardables(unsigned int index) const; //!< Returns the Rewardable object at the given index. 69 73 70 74 };
Note: See TracChangeset
for help on using the changeset viewer.