Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Dialogue_FS17/src/modules/dialogue/DialogueManager.h @ 11460

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

Code aufgeraeumt

File size: 2.0 KB
RevLine 
[11417]1#ifndef _DialogueManager_H__
2#define _DialogueManager_H__
3
[11371]4#include "core/CoreIncludes.h"
5#include "core/LuaState.h"
6#include "core/GUIManager.h"
7#include "core/class/Identifier.h"
8#include "core/singleton/ScopedSingletonIncludes.h"
9#include "network/Host.h"
10#include "network/NetworkFunctionIncludes.h"
[11382]11#include "util/Singleton.h"
12#include <string>
13#include <vector>
[11384]14#include "core/config/Configurable.h"
[11390]15#include "core/XMLPort.h"
[11393]16#include "core/EventIncludes.h"
[11417]17#include "DialoguePrereqs.h"
18#include "NextQuestion.h"
[11371]19
[11406]20
[11413]21
[11415]22
[11406]23namespace orxonox //tolua_export
24
25{//tolua_export
26        class _OrxonoxExport DialogueManager //tolua_export
[11415]27        : public Singleton<DialogueManager>
[11406]28        {//tolua_export
[11382]29                friend class Singleton<DialogueManager>;
[11406]30       
[11384]31                public:
[11401]32               
[11415]33                DialogueManager(); 
[11393]34               
35
[11406]36                static DialogueManager& getInstance() { return Singleton<DialogueManager>::getInstance(); } //tolua_export
[11393]37               
[11435]38
[11406]39                void setquestion(std::string question); //tolua_export
40                std::string getquestion(void); //tolua_export
[11401]41               
[11435]42               
[11413]43                void setanswers1(std::string a1); //tolua_export
[11435]44                std::string getanswers1(void); //tolua_export
45               
[11413]46                void setanswers2(std::string a2); //tolua_export
47                std::string getanswers2(void); //tolua_export
[11435]48               
49                void setCurrentQuestion(NextQuestion* q);
50
51                //Sets the current Question to the question corresponding to the first/second answer 
[11421]52                void a1clicked(void); //tolua_export
53                void a2clicked(void); //tolua_export
[11435]54               
55                //Checks whether there are any more Questions to come
[11428]56                bool theEnd(); //tolua_export
[11435]57
58                //Sets question and a1, a2 for new currentQuestion
[11421]59                void update(NextQuestion* nq);
[11382]60
[11435]61                //Is executed whenever a NextQuestion is created and pushes all NextQuestion into the allQuestion vector.
62                void registerquestion(NextQuestion* nq);
63
[11382]64private:
[11435]65        NextQuestion* currentQuestion; //The Question which is currently displayed
[11417]66        std::vector<NextQuestion*> allQuestions;
[11435]67        std::string a1; //answer on first button
68        std::string a2; //answer on second button
[11384]69        std::string question;
[11382]70        static DialogueManager* singletonPtr_s;
[11371]71
[11406]72        };//tolua_export
73}//tolua_export
[11417]74#endif
Note: See TracBrowser for help on using the repository browser.