- Timestamp:
- Oct 30, 2008, 9:52:12 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem/src/orxonox/objects/QuestEffect.cc
r2021 r2068 59 59 @param effects 60 60 A list of all the effects to be invoked. 61 @return 62 Returns false if there was an error, view console of log for further detail. 61 63 */ 62 voidQuestEffect::invokeEffects(Player* player, std::list<QuestEffect*> & effects)64 bool QuestEffect::invokeEffects(Player* player, std::list<QuestEffect*> & effects) 63 65 { 66 bool check = true; 67 64 68 for (std::list<QuestEffect*>::iterator effect = effects.begin(); effect != effects.end(); effect++) 65 69 { 66 (*effect)->invoke(player);70 check = check && (*effect)->invoke(player); 67 71 } 72 return check; 68 73 } 69 74
Note: See TracChangeset
for help on using the changeset viewer.