Line | |
---|
1 | |
---|
2 | #ifndef _QUESTGUI_H |
---|
3 | #define _QUESTGUI_H |
---|
4 | |
---|
5 | #include "world_entity.h" |
---|
6 | #include "glgui.h" |
---|
7 | #include <glgui_image.h> |
---|
8 | #include <vector> |
---|
9 | |
---|
10 | class Quest; |
---|
11 | |
---|
12 | class QuestGUI : public WorldEntity |
---|
13 | { |
---|
14 | |
---|
15 | ObjectListDeclaration(QuestGUI); |
---|
16 | |
---|
17 | public: |
---|
18 | QuestGUI (const TiXmlElement* root = NULL); |
---|
19 | virtual ~QuestGUI (); |
---|
20 | |
---|
21 | void loadParams(const TiXmlElement* root); |
---|
22 | bool isActive(){ return this->bActive; } |
---|
23 | void guiInit(); |
---|
24 | |
---|
25 | virtual void tick(float dt); |
---|
26 | |
---|
27 | private: |
---|
28 | Quest* myQuest; |
---|
29 | bool bKillGui; |
---|
30 | bool bActive; |
---|
31 | |
---|
32 | OrxGui::GLGuiBox* headerBox; |
---|
33 | OrxGui::GLGuiBox* outlineBox; |
---|
34 | OrxGui::GLGuiBox* labelBox; |
---|
35 | OrxGui::GLGuiImage* placeImage; |
---|
36 | OrxGui::GLGuiBox* questBox; |
---|
37 | OrxGui::GLGuiImage* questImage; |
---|
38 | OrxGui::GLGuiBox* rewardBox; |
---|
39 | OrxGui::GLGuiImage* rewardImage; |
---|
40 | OrxGui::GLGuiBox* answerBox; |
---|
41 | OrxGui::GLGuiImage* placeImage2; |
---|
42 | OrxGui::GLGuiBox* acceptBox; |
---|
43 | OrxGui::GLGuiBox* refuseBox; |
---|
44 | |
---|
45 | |
---|
46 | OrxSound::SoundSource* selectorSource; |
---|
47 | |
---|
48 | void accept(); |
---|
49 | void refuse(); |
---|
50 | void killgui(); |
---|
51 | }; |
---|
52 | |
---|
53 | #endif /* _QUESTGUI_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.