35 #ifndef _QuestDescription_H__ 36 #define _QuestDescription_H__ 77 {
return this->title_; }
84 {
return this->description_; }
92 {
return this->failMessage_; }
99 {
return this->completeMessage_; }
107 {
return notificationHelper(
"hint",
"", player); }
115 {
return notificationHelper(
"quest",
"start", player); }
123 {
return notificationHelper(
"quest",
"fail", player); }
131 {
return notificationHelper(
"quest",
"complete", player); }
148 { this->title_ = title; }
155 { this->description_ = description; }
162 { this->failMessage_ =
message; }
169 { this->completeMessage_ =
message; }
The BaseObject is the parent of all classes representing an instance in the game. ...
Definition: BaseObject.h:63
bool sendFailQuestNotification(PlayerInfo *player)
Sends a Notification displaying that a Quest was failed.
Definition: QuestDescription.h:122
std::string completeMessage_
The message displayed when the Quest is completed.
Definition: QuestDescription.h:139
::std::string string
Definition: gtest-port.h:756
const std::string & getTitle(void) const
Returns the title.
Definition: QuestDescription.h:76
Output level, used for messages directed to the user (e.g. "Press any key to continue") ...
Definition: OutputDefinitions.h:89
bool sendCompleteQuestNotification(PlayerInfo *player)
Sends a Notification displaying that a Quest was completed.
Definition: QuestDescription.h:130
void setFailMessage(const std::string &message)
Sets the fail message.
Definition: QuestDescription.h:161
std::string title_
The title.
Definition: QuestDescription.h:136
xmlelement
Definition: Super.h:519
void setDescription(const std::string &description)
Sets the description text.
Definition: QuestDescription.h:154
std::string description_
The description.
Definition: QuestDescription.h:137
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
This class is a description of a QuestItem (Quest and QuestHint).
Definition: QuestDescription.h:62
void setCompleteMessage(const std::string &message)
Sets the complete message.
Definition: QuestDescription.h:168
Mode
Definition: CorePrereqs.h:102
const std::string & getFailMessage(void)
Returns the fail message.
Definition: QuestDescription.h:91
const std::string & getDescription(void) const
Returns the description text.
Definition: QuestDescription.h:83
Shared library macros, enums, constants and forward declarations for the questsystem module ...
const std::string & getCompleteMessage(void)
Returns the complete message.
Definition: QuestDescription.h:98
Declaration of BaseObject, the base class of all objects in Orxonox.
void setTitle(const std::string &title)
Sets the title.
Definition: QuestDescription.h:147
std::string failMessage_
The message displayed when the Quest is failed.
Definition: QuestDescription.h:138
bool sendAddHintNotification(PlayerInfo *player)
Sends a Notification displaying that a QuestHint was added.
Definition: QuestDescription.h:106
void status(const std::string &text)
Prints output with status level.
Definition: ConsoleCommandCompilation.cc:153
Definition: PlayerInfo.h:39
static const std::string SENDER
Definition: QuestDescription.h:134
bool sendAddQuestNotification(PlayerInfo *player)
Sends a Notification displaying that a Quest was added.
Definition: QuestDescription.h:114
#define _QuestsystemExport
Definition: QuestsystemPrereqs.h:60