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