Line | |
---|
1 | |
---|
2 | #ifndef _QUESTGUI_H |
---|
3 | #define _QUESTGUI_H |
---|
4 | |
---|
5 | #include "world_entity.h" |
---|
6 | #include "glgui.h" |
---|
7 | #include <vector> |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | class QuestGUI : public WorldEntity |
---|
12 | { |
---|
13 | |
---|
14 | ObjectListDeclaration(QuestGUI); |
---|
15 | |
---|
16 | public: |
---|
17 | QuestGUI (const TiXmlElement* root); |
---|
18 | virtual ~QuestGUI (); |
---|
19 | |
---|
20 | |
---|
21 | virtual void loadParams(const TiXmlElement* root = NULL); |
---|
22 | |
---|
23 | /** @param questName sets the name of this quest */ |
---|
24 | inline void setQuestName(const std::string& questName) { this->questName = questName; } |
---|
25 | inline void setQuestDescription(const std::string& questDescription) { this->questName = questDescription; } |
---|
26 | void guiInit(); |
---|
27 | |
---|
28 | void showQuest(); |
---|
29 | |
---|
30 | void quitMenu(); |
---|
31 | |
---|
32 | |
---|
33 | private: |
---|
34 | void showSecondLevelElement(OrxGui::GLGuiBox* element); |
---|
35 | |
---|
36 | |
---|
37 | private: |
---|
38 | std::string questName; |
---|
39 | std::string questDescription; |
---|
40 | OrxGui::GLGuiBox* mainMenuBox; |
---|
41 | |
---|
42 | OrxGui::GLGuiBox* questBox; |
---|
43 | |
---|
44 | OrxGui::GLGuiBox* currentlyOpened; |
---|
45 | |
---|
46 | OrxSound::SoundSource* selectorSource; |
---|
47 | }; |
---|
48 | |
---|
49 | #endif /* _QUESTGUI_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.