- Timestamp:
- Nov 8, 2008, 7:58:49 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem2/src/orxonox/objects/quest/AddReward.cc
r2146 r2159 27 27 */ 28 28 29 /** 30 @file AddReward.cc 31 @brief 32 Implementation of the AddReward class. 33 */ 34 29 35 #include "OrxonoxStableHeaders.h" 30 36 #include "AddReward.h" … … 39 45 CreateFactory(AddReward); 40 46 47 /** 48 @brief 49 Constructor. Registers the object. 50 */ 41 51 AddReward::AddReward(BaseObject* creator) : QuestEffect(creator) 42 52 { 43 53 RegisterObject(AddReward); 44 45 this->initialize();46 54 } 47 55 … … 54 62 } 55 63 64 /** 65 Method for creating a AddReward object through XML. 66 */ 56 67 void AddReward::XMLPort(Element& xmlelement, XMLPort::Mode mode) 57 68 { … … 64 75 /** 65 76 @brief 66 Initializes the object. Needs to be called first by every constructor of this class. 77 Returns the rewardbale object at the given index. 78 @param index 79 The index. 80 @return 81 Returns a pointer to the rewardable object at the given index. 67 82 */ 68 void AddReward::initialize(void)69 {70 RegisterObject(AddReward);71 }72 73 83 const Rewardable* AddReward::getRewardables(unsigned int index) const 74 84 {
Note: See TracChangeset
for help on using the changeset viewer.