#include <src/orxonox/objects/quest/QuestEffect.h>
Public Member Functions | |
virtual bool | invoke (PlayerInfo *player)=0 |
Invokes the QuestEffect. | |
QuestEffect (BaseObject *creator) | |
Constructor. Creates a new QuestEffect. Is not meant to be invoked directly, since this is only an interface. | |
virtual | ~QuestEffect () |
Destructor. | |
Static Public Member Functions | |
static bool | invokeEffects (PlayerInfo *player, std::list< QuestEffect * > &effects) |
Invokes all QuestEffects in the list. |
orxonox::QuestEffect::QuestEffect | ( | BaseObject * | creator | ) |
Constructor. Creates a new QuestEffect. Is not meant to be invoked directly, since this is only an interface.
References RegisterObject.
orxonox::QuestEffect::~QuestEffect | ( | ) | [virtual] |
Destructor.
virtual bool orxonox::QuestEffect::invoke | ( | PlayerInfo * | player | ) | [pure virtual] |
Invokes the QuestEffect.
Implemented in orxonox::AddQuest, orxonox::AddQuestHint, orxonox::AddReward, orxonox::ChangeQuestStatus, orxonox::CompleteQuest, and orxonox::FailQuest.
bool orxonox::QuestEffect::invokeEffects | ( | PlayerInfo * | player, | |
std::list< QuestEffect * > & | effects | |||
) | [static] |
Invokes all QuestEffects in the list.
Static method. Invoke all QuestEffects in an QuestEffect-list on a given player.
player | The player the QuestEffects are invoked on. | |
effects | A list of all the QuestEffects to be invoked. |
References COUT.
Referenced by orxonox::LocalQuest::complete(), orxonox::GlobalQuest::complete(), orxonox::QuestEffectBeacon::execute(), orxonox::LocalQuest::fail(), and orxonox::GlobalQuest::fail().