Rev | Line | |
---|
[10129] | 1 | |
---|
| 2 | #ifndef _QUEST_H |
---|
| 3 | #define _QUEST_H |
---|
| 4 | |
---|
| 5 | |
---|
| 6 | |
---|
| 7 | #include "base_object.h" |
---|
| 8 | #include <string> |
---|
| 9 | |
---|
| 10 | class Quest : public BaseObject |
---|
| 11 | { |
---|
| 12 | |
---|
| 13 | ObjectListDeclaration(Quest); |
---|
| 14 | |
---|
| 15 | public: |
---|
| 16 | Quest (const TiXmlElement* root); |
---|
| 17 | virtual ~Quest (); |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | virtual void loadParams(const TiXmlElement* root = NULL); |
---|
[10167] | 21 | |
---|
[10129] | 22 | inline void setQuestName(const std::string& questName) { this->questName = questName; } |
---|
| 23 | inline const std::string& getQuestName() { return this->questName; } |
---|
| 24 | inline void setQuestDescription(const std::string& questDescription) { this->questDescription = questDescription; } |
---|
| 25 | inline const std::string& getQuestDescription() { return this->questDescription; } |
---|
| 26 | inline void setQuestPicture(const std::string& questPicture) { this->questPicture = questPicture; } |
---|
| 27 | inline const std::string& getQuestPicture() { return this->questPicture; } |
---|
| 28 | inline void setQuestDifficulty(const std::string& questDifficulty) { this->questDifficulty = questDifficulty; } |
---|
| 29 | inline const std::string& getQuestDifficulty() { return this->questDifficulty; } |
---|
| 30 | inline void setRewardDescription(const std::string& rewardDescription){ this->rewardDescription = rewardDescription; } |
---|
| 31 | inline const std::string& getRewardDescription() { return this->rewardDescription; } |
---|
| 32 | inline void setRewardPicture(const std::string& rewardPicture) { this->rewardPicture = rewardPicture; } |
---|
| 33 | inline const std::string& getRewardPicture() { return this->rewardPicture; } |
---|
[10167] | 34 | void setQuestActive(); |
---|
| 35 | void setQuestInactive(); |
---|
| 36 | const bool getQuestStatus(); |
---|
| 37 | |
---|
[10129] | 38 | |
---|
| 39 | |
---|
| 40 | private: |
---|
[10167] | 41 | bool Status; |
---|
[10129] | 42 | std::string questName; |
---|
| 43 | std::string questDescription; |
---|
| 44 | std::string questPicture; |
---|
| 45 | std::string questDifficulty; |
---|
| 46 | std::string rewardDescription; |
---|
| 47 | std::string rewardPicture; |
---|
| 48 | |
---|
| 49 | }; |
---|
| 50 | |
---|
| 51 | #endif /* _QUEST_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.