Line | |
---|
1 | //#include <vector> |
---|
2 | #include <string> |
---|
3 | #include "core/class/Identifier.h" |
---|
4 | #include "OrxonoxPrereqs.h" |
---|
5 | #include "core/XMLPort.h" |
---|
6 | #include "core/EventIncludes.h" |
---|
7 | #include "DialogueManager.h" |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | namespace orxonox{ |
---|
12 | class _OrxonoxExport NextQuestion : public BaseObject |
---|
13 | { |
---|
14 | |
---|
15 | //tolua_begin |
---|
16 | public: |
---|
17 | |
---|
18 | NextQuestion (Context* context); // tolua_export |
---|
19 | |
---|
20 | |
---|
21 | void setquestion(std::string question); |
---|
22 | std::string getquestion(void); |
---|
23 | |
---|
24 | |
---|
25 | bool addposQuestion(NextQuestion* nq); |
---|
26 | const NextQuestion* getposQuestion(unsigned int index) const; |
---|
27 | |
---|
28 | |
---|
29 | virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); |
---|
30 | |
---|
31 | void setanswers1(std::string a1); |
---|
32 | void setanswers2(std::string a2); |
---|
33 | std::string getanswers1(void); |
---|
34 | std::string getanswers2(void); |
---|
35 | |
---|
36 | NextQuestion compare(); |
---|
37 | |
---|
38 | |
---|
39 | //Event |
---|
40 | virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode); |
---|
41 | bool execute(bool bTriggered, BaseObject* trigger); |
---|
42 | |
---|
43 | |
---|
44 | private: |
---|
45 | std::string a1; |
---|
46 | std::string a2; |
---|
47 | std::vector<NextQuestion*> possibleQuestions; |
---|
48 | |
---|
49 | |
---|
50 | std::string question; |
---|
51 | DialogueManager* m; |
---|
52 | |
---|
53 | }; |
---|
54 | |
---|
55 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.