orxonox::FailQuest Class Reference

Fails a quest (with a specified id) for the player invoking the QuestEffect. More...

#include <src/orxonox/objects/quest/FailQuest.h>

Inheritance diagram for orxonox::FailQuest:

orxonox::ChangeQuestStatus orxonox::QuestEffect orxonox::BaseObject orxonox::OrxonoxClass

List of all members.

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.


Detailed Description

Fails a quest (with a specified id) for the player invoking the QuestEffect.

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.

Author:
Damian 'Mozork' Frick

Constructor & Destructor Documentation

orxonox::FailQuest::FailQuest ( BaseObject creator  ) 

Constructor. Registers the object.

References RegisterObject.

orxonox::FailQuest::~FailQuest (  )  [virtual]

Destructor.


Member Function Documentation

bool orxonox::FailQuest::invoke ( PlayerInfo player  )  [virtual]

Invokes the QuestEffect.

Parameters:
player The player the QuestEffect is invoked on.
Returns:
Returns true if the QuestEffect was invoked successfully.

< 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.


The documentation for this class was generated from the following files:

Generated on Tue Jul 28 16:22:30 2009 for Orxonox by  doxygen 1.5.6