source:
code/trunk/src/modules/dialogue/NextQuestion.h
@
11712
Last change on this file since 11712 was 11699, checked in by landauf, 7 years ago | |
---|---|
File size: 1.3 KB |
Rev | Line | |
---|---|---|
[11417] | 1 | #ifndef _NextQuestion_H__ |
2 | #define _NextQuestion_H__ | |
3 | ||
4 | ||
[11435] | 5 | |
[11393] | 6 | #include <string> |
[11401] | 7 | #include "core/class/Identifier.h" |
8 | #include "OrxonoxPrereqs.h" | |
[11393] | 9 | #include "core/XMLPort.h" |
[11401] | 10 | #include "core/EventIncludes.h" |
[11417] | 11 | #include "DialoguePrereqs.h" |
[11393] | 12 | |
[11401] | 13 | |
[11393] | 14 | namespace orxonox{ |
[11699] | 15 | class _DialogueExport NextQuestion : public BaseObject |
[11401] | 16 | { |
17 | ||
18 | //tolua_begin | |
19 | public: | |
[11393] | 20 | |
[11401] | 21 | NextQuestion (Context* context); // tolua_export |
22 | ||
23 | ||
24 | void setquestion(std::string question); | |
25 | std::string getquestion(void); | |
26 | ||
[11413] | 27 | void setanswers1(std::string a1); |
28 | void setanswers2(std::string a2); | |
29 | std::string getanswers1(void); | |
30 | std::string getanswers2(void); | |
[11401] | 31 | |
[11413] | 32 | |
[11435] | 33 | |
[11401] | 34 | |
[11435] | 35 | //XMLEventPort for Event that first triggers the Dialogue |
[11401] | 36 | virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode); |
[11435] | 37 | |
38 | //XMLPort for setting questions and answers and the vector possibleQuestions | |
39 | virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); | |
40 | ||
41 | bool addposQuestion(NextQuestion* nq); | |
42 | const NextQuestion* getposQuestion(unsigned int index) const; | |
43 | ||
44 | //Sets very first currentQuestion in the DialogueManager when the event is triggered | |
[11401] | 45 | bool execute(bool bTriggered, BaseObject* trigger); |
46 | ||
[11417] | 47 | std::vector<NextQuestion*> possibleQuestions; |
[11435] | 48 | |
[11401] | 49 | private: |
[11413] | 50 | std::string a1; |
51 | std::string a2; | |
[11432] | 52 | |
[11413] | 53 | |
54 | ||
[11401] | 55 | std::string question; |
56 | DialogueManager* m; | |
57 | ||
58 | }; | |
59 | ||
[11417] | 60 | } |
[11699] | 61 | #endif |
Note: See TracBrowser
for help on using the repository browser.