[11395] | 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" |
---|
| 8 | #include "DialoguePrereqs.h" |
---|
| 9 | #include "util/Singleton.h" |
---|
| 10 | #include <string> |
---|
| 11 | #include <vector> |
---|
| 12 | #include "OrxonoxPrereqs.h" |
---|
| 13 | #include "core/config/Configurable.h" |
---|
| 14 | #include "core/XMLPort.h" |
---|
| 15 | #include "core/EventIncludes.h" |
---|
| 16 | |
---|
| 17 | //tolua_begin |
---|
| 18 | namespace orxonox |
---|
| 19 | //tolua_end |
---|
| 20 | {//toluaexport |
---|
| 21 | class _OrxonoxExport DialogueManager : public Singleton<DialogueManager>, public BaseObject |
---|
| 22 | { |
---|
| 23 | friend class Singleton<DialogueManager>; |
---|
| 24 | //tolua_begin |
---|
| 25 | public: |
---|
| 26 | |
---|
| 27 | DialogueManager(Context* context); // tolua_export |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | static DialogueManager& getInstance() { return Singleton<DialogueManager>::getInstance(); } |
---|
| 31 | |
---|
| 32 | virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); |
---|
| 33 | |
---|
| 34 | void setquestion(std::string question); |
---|
| 35 | std::string getquestion(void); |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode); |
---|
| 39 | bool execute(bool bTriggered, BaseObject* trigger); |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | /*std::string setnpc(std::string npc); |
---|
| 44 | |
---|
| 45 | void setanswers(std::string option1, std::string option2, std::string option3); |
---|
| 46 | std::vector <std::string> getanswers(void); |
---|
| 47 | |
---|
| 48 | int getnumOptions(); |
---|
| 49 | |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | std::string npc; |
---|
| 53 | std::vector<std::string> options; |
---|
| 54 | //tolua_end |
---|
| 55 | */ |
---|
| 56 | private: |
---|
| 57 | std::string question; |
---|
| 58 | static DialogueManager* singletonPtr_s; |
---|
| 59 | |
---|
| 60 | };//toluaexport |
---|
| 61 | } |
---|