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() const { return this->questName; } |
---|
24 | |
---|
25 | inline void setQuestDescription(const std::string& questDescription) { this->questDescription = questDescription; } |
---|
26 | inline const std::string& getQuestDescription() const { return this->questDescription; } |
---|
27 | |
---|
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 | |
---|
43 | void setQuestActive(); |
---|
44 | void setQuestInactive(); |
---|
45 | const bool getQuestStatus() const { return status; }; |
---|
46 | |
---|
47 | |
---|
48 | |
---|
49 | private: |
---|
50 | bool status; |
---|
51 | std::string questName; |
---|
52 | std::string questDescription; |
---|
53 | std::string questPersons; |
---|
54 | std::string questPicture; |
---|
55 | std::string questDifficulty; |
---|
56 | std::string rewardDescription; |
---|
57 | std::string rewardPicture; |
---|
58 | |
---|
59 | }; |
---|
60 | |
---|
61 | #endif /* _QUEST_H */ |
---|