Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Code aufgeraeumt

File size: 1.3 KB
RevLine 
[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]14namespace orxonox{
[11401]15        class _OrxonoxExport NextQuestion : public BaseObject
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}
61#endif
Note: See TracBrowser for help on using the repository browser.