Rev | Line | |
---|
[10026] | 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 | virtual bool stop(); |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | private: |
---|
| 35 | void showSecondLevelElement(OrxGui::GLGuiBox* element); |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | private: |
---|
| 39 | std::string questName; |
---|
| 40 | std::string questDescription; |
---|
| 41 | OrxGui::GLGuiBox* mainMenuBox; |
---|
| 42 | OrxGui::GLGuiBox* levelsBox; |
---|
| 43 | OrxGui::GLGuiBox* questBox; |
---|
| 44 | |
---|
| 45 | OrxGui::GLGuiBox* currentlyOpened; |
---|
| 46 | |
---|
| 47 | OrxSound::SoundSource* selectorSource; |
---|
| 48 | }; |
---|
| 49 | |
---|
| 50 | #endif /* _QUESTGUI_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.