Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Dialogue_FS17/src/modules/dialogue/NextQuestion.h @ 11413

Last change on this file since 11413 was 11413, checked in by rrogge, 7 years ago

Buttons

File size: 1.0 KB
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
11namespace 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.