Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 30, 2008, 9:52:12 AM (16 years ago)
Author:
dafrick
Message:

Started with XMLPort…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem/src/orxonox/objects/QuestEffect.cc

    r2021 r2068  
    5959    @param effects
    6060        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.
    6163    */
    62     void QuestEffect::invokeEffects(Player* player, std::list<QuestEffect*> & effects)
     64    bool QuestEffect::invokeEffects(Player* player, std::list<QuestEffect*> & effects)
    6365    {
     66        bool check = true;
     67       
    6468        for (std::list<QuestEffect*>::iterator effect = effects.begin(); effect != effects.end(); effect++)
    6569        {
    66             (*effect)->invoke(player);
     70            check = check && (*effect)->invoke(player);
    6771        }
     72        return check;
    6873    }
    6974
Note: See TracChangeset for help on using the changeset viewer.