[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 | |
---|
[10618] | 22 | inline void setQuestName(const std::string& questName) { this->questName = questName; } |
---|
| 23 | inline const std::string& getQuestName() const { return this->questName; } |
---|
[10222] | 24 | |
---|
[10618] | 25 | inline void setQuestDescription(const std::string& questDescription) { this->questDescription = questDescription; } |
---|
| 26 | inline const std::string& getQuestDescription() const { return this->questDescription; } |
---|
[10222] | 27 | |
---|
[10618] | 28 | inline void setQuestPicture(const std::string& questPicture) { this->questPicture = questPicture; } |
---|
| 29 | inline const std::string& getQuestPicture() const { return this->questPicture; } |
---|
| 30 | |
---|
| 31 | inline void setQuestDifficulty(const std::string& questDifficulty) { this->questDifficulty = questDifficulty; } |
---|
| 32 | inline const std::string& getQuestDifficulty() const { return this->questDifficulty; } |
---|
| 33 | |
---|
| 34 | inline void setQuestPersons(const std::string& questPersons) { this->questPersons = questPersons; } |
---|
| 35 | inline const std::string& getQuestPersons() const { return this->questPersons; } |
---|
| 36 | |
---|
| 37 | inline void setRewardDescription(const std::string& rewardDescription) { this->rewardDescription = rewardDescription; } |
---|
| 38 | inline const std::string& getRewardDescription() const { return this->rewardDescription; } |
---|
| 39 | |
---|
| 40 | inline void setRewardPicture(const std::string& rewardPicture) { this->rewardPicture = rewardPicture; } |
---|
| 41 | inline const std::string& getRewardPicture() const { return this->rewardPicture; } |
---|
| 42 | |
---|
[10167] | 43 | void setQuestActive(); |
---|
| 44 | void setQuestInactive(); |
---|
[10618] | 45 | const bool getQuestStatus() const { return status; }; |
---|
[10167] | 46 | |
---|
[10129] | 47 | |
---|
| 48 | |
---|
| 49 | private: |
---|
[10618] | 50 | bool status; |
---|
[10129] | 51 | std::string questName; |
---|
| 52 | std::string questDescription; |
---|
[10222] | 53 | std::string questPersons; |
---|
[10129] | 54 | std::string questPicture; |
---|
| 55 | std::string questDifficulty; |
---|
| 56 | std::string rewardDescription; |
---|
| 57 | std::string rewardPicture; |
---|
| 58 | |
---|
| 59 | }; |
---|
| 60 | |
---|
| 61 | #endif /* _QUEST_H */ |
---|