Changeset 5693 for code/trunk/src/orxonox/objects/quest/QuestDescription.h
- Timestamp:
- Aug 29, 2009, 10:19:38 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/libraries (added) merged: 5612-5613,5615-5619,5621-5623,5625-5640,5642-5643,5647-5649,5665-5666,5685-5687,5692
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/QuestDescription.h
r3370 r5693 35 35 #define _QuestDescription_H__ 36 36 37 #include " OrxonoxPrereqs.h"37 #include "objects/quest/QuestPrereqs.h" 38 38 39 39 #include <string> … … 47 47 This class is a description of a QuestItem. 48 48 It holds a title and a description. 49 49 50 50 Creating a QuestDescription through XML goes as follows: 51 51 52 52 <QuestDescription title="Title" description="Description Text" failMessage="You fail." completeMessage="You win!" /> 53 53 @author 54 54 Damian 'Mozork' Frick 55 55 */ 56 class _ OrxonoxExport QuestDescription : public BaseObject56 class _QuestExport QuestDescription : public BaseObject 57 57 { 58 58 // tolua_end … … 70 70 inline const std::string & getTitle(void) const 71 71 { return this->title_; } 72 72 73 73 /** 74 74 @brief Returns the description text. … … 78 78 { return this->description_; } 79 79 // tolua_end 80 80 81 81 /** 82 82 @brief Returns the fail message. … … 85 85 inline const std::string & getFailMessage(void) const 86 86 { return this->failMessage_; } 87 87 88 88 /** 89 89 @brief Returns the complete message. … … 92 92 inline const std::string & getCompleteMessage(void) const 93 93 { return this->completeMessage_; } 94 94 95 95 /** 96 96 @brief Sends a Notification displaying that a QuestHint was added. … … 99 99 inline bool sendAddHintNotification(void) const 100 100 { return notificationHelper("hint", ""); } 101 101 102 102 /** 103 103 @brief Sends a Notification displaying that a Quest was added. … … 106 106 inline bool sendAddQuestNotification(void) const 107 107 { return notificationHelper("quest", "start"); } 108 108 109 109 /** 110 110 @brief Sends a Notification displaying that a Quest was failed. … … 113 113 inline bool sendFailQuestNotification(void) const 114 114 { return notificationHelper("quest", "fail"); } 115 115 116 116 /** 117 117 @brief Sends a Notification displaying that a Quest was completed. … … 135 135 inline void setTitle(const std::string & title) 136 136 { this->title_ = title; } 137 137 138 138 /** 139 139 @brief Sets the description text. … … 149 149 inline void setFailMessage(const std::string & message) 150 150 { this->failMessage_ = message; } 151 151 152 152 /** 153 153 @brief Sets the complete message.
Note: See TracChangeset
for help on using the changeset viewer.