[11417] | 1 | #ifndef _DialogueManager_H__ |
---|
| 2 | #define _DialogueManager_H__ |
---|
| 3 | |
---|
[11371] | 4 | #include "core/CoreIncludes.h" |
---|
| 5 | #include "core/LuaState.h" |
---|
| 6 | #include "core/GUIManager.h" |
---|
| 7 | #include "core/class/Identifier.h" |
---|
| 8 | #include "core/singleton/ScopedSingletonIncludes.h" |
---|
| 9 | #include "network/Host.h" |
---|
| 10 | #include "network/NetworkFunctionIncludes.h" |
---|
[11382] | 11 | #include "util/Singleton.h" |
---|
| 12 | #include <string> |
---|
| 13 | #include <vector> |
---|
[11417] | 14 | //#include "OrxonoxPrereqs.h" |
---|
[11384] | 15 | #include "core/config/Configurable.h" |
---|
[11390] | 16 | #include "core/XMLPort.h" |
---|
[11393] | 17 | #include "core/EventIncludes.h" |
---|
[11417] | 18 | #include "DialoguePrereqs.h" |
---|
| 19 | #include "NextQuestion.h" |
---|
[11371] | 20 | |
---|
[11406] | 21 | |
---|
[11413] | 22 | |
---|
[11415] | 23 | |
---|
[11406] | 24 | namespace orxonox //tolua_export |
---|
| 25 | |
---|
| 26 | {//tolua_export |
---|
| 27 | class _OrxonoxExport DialogueManager //tolua_export |
---|
[11415] | 28 | : public Singleton<DialogueManager> |
---|
[11406] | 29 | {//tolua_export |
---|
[11382] | 30 | friend class Singleton<DialogueManager>; |
---|
[11406] | 31 | |
---|
[11384] | 32 | public: |
---|
[11401] | 33 | |
---|
[11377] | 34 | |
---|
[11415] | 35 | DialogueManager(); |
---|
[11393] | 36 | |
---|
| 37 | |
---|
[11406] | 38 | static DialogueManager& getInstance() { return Singleton<DialogueManager>::getInstance(); } //tolua_export |
---|
[11393] | 39 | |
---|
[11406] | 40 | void setquestion(std::string question); //tolua_export |
---|
| 41 | std::string getquestion(void); //tolua_export |
---|
[11401] | 42 | |
---|
[11417] | 43 | void registerquestion(NextQuestion* nq); |
---|
[11413] | 44 | void setanswers1(std::string a1); //tolua_export |
---|
| 45 | void setanswers2(std::string a2); //tolua_export |
---|
| 46 | std::string getanswers1(void); //tolua_export |
---|
| 47 | std::string getanswers2(void); //tolua_export |
---|
[11421] | 48 | void a1clicked(void); //tolua_export |
---|
| 49 | void a2clicked(void); //tolua_export |
---|
[11428] | 50 | bool theEnd(); //tolua_export |
---|
[11421] | 51 | void update(NextQuestion* nq); |
---|
[11382] | 52 | |
---|
| 53 | private: |
---|
[11417] | 54 | NextQuestion* currentQuestion; |
---|
| 55 | std::vector<NextQuestion*> allQuestions; |
---|
[11413] | 56 | std::string a1; |
---|
| 57 | std::string a2; |
---|
[11384] | 58 | std::string question; |
---|
[11382] | 59 | static DialogueManager* singletonPtr_s; |
---|
[11371] | 60 | |
---|
[11406] | 61 | };//tolua_export |
---|
| 62 | }//tolua_export |
---|
[11417] | 63 | #endif |
---|