Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 27, 2008, 8:31:20 PM (16 years ago)
Author:
dafrick
Message:

Nearly compiles, some minor improvements.

File:
1 edited

Legend:

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

    r1996 r2021  
    2828
    2929#include "core/CoreIncludes.h"
     30
    3031#include "QuestEffect.h"
    3132
    3233namespace orxonox {
    33 
    34     CreateFactory(QuestEffect);
    3534
    3635    /**
     
    6160        A list of all the effects to be invoked.
    6261    */
    63     void QuestEffect::invokeEffects(Player & player, std::list<QuestEffect> & effects)
     62    void QuestEffect::invokeEffects(Player* player, std::list<QuestEffect*> & effects)
    6463    {
    65         if ( effects == NULL )
    66         {
    67             COUT(5) << "NULL-QuestEffect list encountered." << std::endl;
    68             return;
    69         }
    70         for ( std::list<QuestEffect>::iterator = effects.begin(); effect != effects.end(); ++effect )
     64        for (std::list<QuestEffect*>::iterator effect = effects.begin(); effect != effects.end(); effect++)
    7165        {
    72             effect.invoke(player);
     66            (*effect)->invoke(player);
    7367        }
    7468    }
Note: See TracChangeset for help on using the changeset viewer.