- Timestamp:
- Dec 7, 2008, 11:39:44 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem3/src/orxonox/objects/quest/GlobalQuest.cc
r2328 r2352 29 29 /** 30 30 @file GlobalQuest.cc 31 @brief 32 Implementation of the GlobalQuest class. 31 @brief Implementation of the GlobalQuest class. 33 32 */ 34 33 … … 96 95 97 96 Quest::fail(player); 98 99 100 101 102 103 104 105 97 98 //! Iterate through all players possessing this Quest. 99 for(std::set<PlayerInfo*>::const_iterator it = players_.begin(); it != players_.end(); it++) 100 { 101 QuestEffect::invokeEffects(*it, this->getFailEffectList()); 102 } 103 104 return true; 106 105 } 107 106 … … 125 124 126 125 //! Iterate through all players possessing the Quest. 127 128 129 130 131 132 133 134 135 126 for(std::set<PlayerInfo*>::const_iterator it = players_.begin(); it != players_.end(); it++) 127 { 128 QuestEffect::invokeEffects(*it, this->getCompleteEffectList()); 129 } 130 131 Quest::complete(player); 132 133 QuestEffect::invokeEffects(player, this->rewards_); //!< Invoke reward QuestEffects on the player completing the Quest. 134 return true; 136 135 } 137 136 … … 208 207 } 209 208 210 return questStatus::inactive;209 return questStatus::inactive; 211 210 } 212 211
Note: See TracChangeset
for help on using the changeset viewer.