Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Reload works now

File size: 1.7 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>
[11417]14//#include "OrxonoxPrereqs.h"
[11384]15#include "core/config/Configurable.h"
[11390]16#include "core/XMLPort.h"
[11393]17#include "core/EventIncludes.h"
[11417]18#include "DialoguePrereqs.h"
19#include "NextQuestion.h"
[11371]20
[11406]21
[11413]22
[11415]23
[11406]24namespace orxonox //tolua_export
25
26{//tolua_export
27        class _OrxonoxExport DialogueManager //tolua_export
[11415]28        : public Singleton<DialogueManager>
[11406]29        {//tolua_export
[11382]30                friend class Singleton<DialogueManager>;
[11406]31       
[11384]32                public:
[11401]33               
[11377]34
[11415]35                DialogueManager(); 
[11393]36               
37
[11406]38                static DialogueManager& getInstance() { return Singleton<DialogueManager>::getInstance(); } //tolua_export
[11393]39               
[11406]40                void setquestion(std::string question); //tolua_export
41                std::string getquestion(void); //tolua_export
[11401]42               
[11417]43                void registerquestion(NextQuestion* nq);
[11413]44                void setanswers1(std::string a1); //tolua_export
45                void setanswers2(std::string a2); //tolua_export
46                std::string getanswers1(void); //tolua_export
47                std::string getanswers2(void); //tolua_export
[11421]48                void a1clicked(void); //tolua_export
49                void a2clicked(void); //tolua_export
[11428]50                bool theEnd(); //tolua_export
[11421]51                void update(NextQuestion* nq);
[11432]52                void clean(); //tolua_export
53                void setCurrentQuestion(NextQuestion* q);
[11382]54
55private:
[11417]56        NextQuestion* currentQuestion;
57        std::vector<NextQuestion*> allQuestions;
[11413]58        std::string a1;
59        std::string a2;
[11384]60        std::string question;
[11432]61        int depth = 0;
[11382]62        static DialogueManager* singletonPtr_s;
[11371]63
[11406]64        };//tolua_export
65}//tolua_export
[11417]66#endif
Note: See TracBrowser for help on using the repository browser.