Rev | Line | |
---|
[11393] | 1 | #include <vector> |
---|
| 2 | #include <string> |
---|
[11401] | 3 | #include "core/class/Identifier.h" |
---|
| 4 | #include "OrxonoxPrereqs.h" |
---|
[11393] | 5 | #include "core/XMLPort.h" |
---|
[11401] | 6 | #include "core/EventIncludes.h" |
---|
| 7 | #include "DialogueManager.h" |
---|
[11393] | 8 | |
---|
[11401] | 9 | |
---|
| 10 | |
---|
[11393] | 11 | namespace orxonox{ |
---|
[11401] | 12 | class _OrxonoxExport NextQuestion : public BaseObject |
---|
| 13 | { |
---|
| 14 | |
---|
| 15 | //tolua_begin |
---|
| 16 | public: |
---|
[11393] | 17 | |
---|
[11401] | 18 | NextQuestion (Context* context); // tolua_export |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | void setquestion(std::string question); |
---|
| 22 | std::string getquestion(void); |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); |
---|
| 29 | |
---|
| 30 | /*void setanswers(std::string option1, std::string option2, std::string option3); |
---|
| 31 | std::vector <std::string> getanswers(void); |
---|
| 32 | |
---|
| 33 | int getnumOptions(); |
---|
| 34 | std::vector<std::string> options;*/ |
---|
| 35 | |
---|
| 36 | //Event |
---|
| 37 | virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode); |
---|
| 38 | bool execute(bool bTriggered, BaseObject* trigger); |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | private: |
---|
| 42 | std::string question; |
---|
| 43 | DialogueManager* m; |
---|
| 44 | |
---|
| 45 | }; |
---|
| 46 | |
---|
[11393] | 47 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.