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); |
---|
21 | |
---|
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 | |
---|
31 | inline void setQuestPersons(const std::string& questPersons) { this->questPersons = questPersons; } |
---|
32 | inline const std::string& getQuestPersons() { return this->questPersons; } |
---|
33 | |
---|
34 | inline void setRewardDescription(const std::string& rewardDescription){ this->rewardDescription = rewardDescription; } |
---|
35 | inline const std::string& getRewardDescription() { return this->rewardDescription; } |
---|
36 | inline void setRewardPicture(const std::string& rewardPicture) { this->rewardPicture = rewardPicture; } |
---|
37 | inline const std::string& getRewardPicture() { return this->rewardPicture; } |
---|
38 | void setQuestActive(); |
---|
39 | void setQuestInactive(); |
---|
40 | const bool getQuestStatus(); |
---|
41 | |
---|
42 | |
---|
43 | |
---|
44 | private: |
---|
45 | bool Status; |
---|
46 | std::string questName; |
---|
47 | std::string questDescription; |
---|
48 | std::string questPersons; |
---|
49 | std::string questPicture; |
---|
50 | std::string questDifficulty; |
---|
51 | std::string rewardDescription; |
---|
52 | std::string rewardPicture; |
---|
53 | |
---|
54 | }; |
---|
55 | |
---|
56 | #endif /* _QUEST_H */ |
---|