#include <src/orxonox/objects/quest/ChangeQuestStatus.h>
Public Member Functions | |
ChangeQuestStatus (BaseObject *creator) | |
Constructor. Registers the object. | |
virtual bool | invoke (PlayerInfo *player)=0 |
Invokes the QuestEffect. | |
virtual void | XMLPort (Element &xmlelement, XMLPort::Mode mode) |
Method for creating a ChangeQuestStatus object through XML. | |
virtual | ~ChangeQuestStatus () |
Destructor. | |
Protected Member Functions | |
const std::string & | getQuestId (void) const |
Returns the id of the Quest. | |
Private Member Functions | |
bool | setQuestId (const std::string &id) |
Sets the id of the Quest. | |
Private Attributes | |
std::string | questId_ |
The id of the Quest the status should be changed of. |
orxonox::ChangeQuestStatus::ChangeQuestStatus | ( | BaseObject * | creator | ) |
orxonox::ChangeQuestStatus::~ChangeQuestStatus | ( | ) | [virtual] |
Destructor.
const std::string& orxonox::ChangeQuestStatus::getQuestId | ( | void | ) | const [inline, protected] |
Returns the id of the Quest.
Referenced by orxonox::FailQuest::invoke(), orxonox::CompleteQuest::invoke(), orxonox::AddQuest::invoke(), orxonox::FailQuest::XMLPort(), orxonox::CompleteQuest::XMLPort(), XMLPort(), and orxonox::AddQuest::XMLPort().
virtual bool orxonox::ChangeQuestStatus::invoke | ( | PlayerInfo * | player | ) | [pure virtual] |
Invokes the QuestEffect.
Implements orxonox::QuestEffect.
Implemented in orxonox::AddQuest, orxonox::CompleteQuest, and orxonox::FailQuest.
bool orxonox::ChangeQuestStatus::setQuestId | ( | const std::string & | id | ) | [private] |
void orxonox::ChangeQuestStatus::XMLPort | ( | Element & | xmlelement, | |
XMLPort::Mode | mode | |||
) | [virtual] |
Method for creating a ChangeQuestStatus object through XML.
Reimplemented from orxonox::BaseObject.
Reimplemented in orxonox::AddQuest, orxonox::CompleteQuest, and orxonox::FailQuest.
References getQuestId(), setQuestId(), SUPER, and XMLPortParam.