Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/modules/dialogue/NextQuestion.h @ 11512

Last change on this file since 11512 was 11435, checked in by rrogge, 8 years ago

Code aufgeraeumt

File size: 1.3 KB
Line 
1#ifndef _NextQuestion_H__
2#define _NextQuestion_H__
3
4
5
6#include <string>
7#include "core/class/Identifier.h"
8#include "OrxonoxPrereqs.h"
9#include "core/XMLPort.h"
10#include "core/EventIncludes.h"
11#include "DialoguePrereqs.h"
12
13
14namespace orxonox{
15        class _OrxonoxExport NextQuestion : public BaseObject
16        {
17               
18                //tolua_begin
19                public:
20
21                NextQuestion (Context* context); // tolua_export
22               
23
24                void setquestion(std::string question);
25                std::string getquestion(void);
26
27                void setanswers1(std::string a1);
28                void setanswers2(std::string a2);
29                std::string getanswers1(void);
30                std::string getanswers2(void);
31
32               
33               
34
35                //XMLEventPort for Event that first triggers the Dialogue
36                virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode);
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
45                bool execute(bool bTriggered, BaseObject* trigger);
46
47                std::vector<NextQuestion*> possibleQuestions;
48       
49        private:
50                std::string a1;
51                std::string a2;
52       
53
54
55                std::string question;
56                DialogueManager* m;
57
58        };
59       
60}
61#endif
Note: See TracBrowser for help on using the repository browser.