#include <src/orxonox/objects/quest/FailQuest.h>
Public Member Functions | |
FailQuest (BaseObject *creator) | |
Constructor. Registers the object. | |
virtual bool | invoke (PlayerInfo *player) |
Invokes the QuestEffect. | |
virtual void | XMLPort (Element &xmlelement, XMLPort::Mode mode) |
Method for creating a FailQuest object through XML. | |
virtual | ~FailQuest () |
Destructor. |
Creating a FailQuest through XML goes as follows:
<FailQuest questid="id"> //Where id is a GUID, see http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure for more information, and identifies the Quest that should be failed.
orxonox::FailQuest::FailQuest | ( | BaseObject * | creator | ) |
orxonox::FailQuest::~FailQuest | ( | ) | [virtual] |
Destructor.
bool orxonox::FailQuest::invoke | ( | PlayerInfo * | player | ) | [virtual] |
Invokes the QuestEffect.
player | The player the QuestEffect is invoked on. |
< We don't know what to do with no player.
Implements orxonox::ChangeQuestStatus.
References COUT, orxonox::Quest::fail(), orxonox::QuestManager::findQuest(), orxonox::Exception::getFullDescription(), orxonox::QuestItem::getId(), orxonox::QuestManager::getInstance(), and orxonox::ChangeQuestStatus::getQuestId().
void orxonox::FailQuest::XMLPort | ( | Element & | xmlelement, | |
XMLPort::Mode | mode | |||
) | [virtual] |
Method for creating a FailQuest object through XML.
Reimplemented from orxonox::ChangeQuestStatus.
References COUT, orxonox::ChangeQuestStatus::getQuestId(), and SUPER.