Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 11723 was 11718, checked in by landauf, 7 years ago

tabs → spaces

File size: 1.4 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{
[11718]15    class _DialogueExport NextQuestion : public BaseObject
16    {
[11393]17
[11718]18        //tolua_begin
19        public:
[11401]20
[11718]21        NextQuestion (Context* context); // tolua_export
[11401]22
23
[11718]24        void setquestion(std::string question);
25        std::string getquestion(void);
[11401]26
[11718]27        void setanswers1(std::string a1);
28        void setanswers2(std::string a2);
29        std::string getanswers1(void);
30        std::string getanswers2(void);
[11435]31
32
33
[11401]34
[11718]35        //XMLEventPort for Event that first triggers the Dialogue
36        virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode);
[11413]37
[11718]38        //XMLPort for setting questions and answers and the vector possibleQuestions
39        virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
[11413]40
[11718]41        bool addposQuestion(NextQuestion* nq);
42        const NextQuestion* getposQuestion(unsigned int index) const;
[11401]43
[11718]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
[11417]60}
[11699]61#endif
Note: See TracBrowser for help on using the repository browser.