Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

question updates

File size: 1.1 KB
Line 
1#ifndef _NextQuestion_H__
2#define _NextQuestion_H__
3
4
5//#include <vector>
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
28                bool addposQuestion(NextQuestion* nq);
29                const NextQuestion* getposQuestion(unsigned int index) const;
30 
31               
32                virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
33
34                void setanswers1(std::string a1);
35                void setanswers2(std::string a2);
36                std::string getanswers1(void);
37                std::string getanswers2(void);
38
39                NextQuestion compare();
40               
41
42                //Event
43                virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode);
44                bool execute(bool bTriggered, BaseObject* trigger);
45
46                std::vector<NextQuestion*> possibleQuestions;
47                std::vector<NextQuestion*> retposQues();
48        private:
49                std::string a1;
50                std::string a2;
51               
52
53
54                std::string question;
55                DialogueManager* m;
56
57        };
58       
59}
60#endif
Note: See TracBrowser for help on using the repository browser.