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
Line 
1#ifndef _DialogueManager_H__
2#define _DialogueManager_H__
3
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"
11#include "util/Singleton.h"
12#include <string>
13#include <vector>
14//#include "OrxonoxPrereqs.h"
15#include "core/config/Configurable.h"
16#include "core/XMLPort.h"
17#include "core/EventIncludes.h"
18#include "DialoguePrereqs.h"
19#include "NextQuestion.h"
20
21
22
23
24namespace orxonox //tolua_export
25
26{//tolua_export
27        class _OrxonoxExport DialogueManager //tolua_export
28        : public Singleton<DialogueManager>
29        {//tolua_export
30                friend class Singleton<DialogueManager>;
31       
32                public:
33               
34
35                DialogueManager(); 
36               
37
38                static DialogueManager& getInstance() { return Singleton<DialogueManager>::getInstance(); } //tolua_export
39               
40                void setquestion(std::string question); //tolua_export
41                std::string getquestion(void); //tolua_export
42               
43                void registerquestion(NextQuestion* nq);
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
48                void a1clicked(void); //tolua_export
49                void a2clicked(void); //tolua_export
50                bool theEnd(); //tolua_export
51                void update(NextQuestion* nq);
52                void clean(); //tolua_export
53                void setCurrentQuestion(NextQuestion* q);
54
55private:
56        NextQuestion* currentQuestion;
57        std::vector<NextQuestion*> allQuestions;
58        std::string a1;
59        std::string a2;
60        std::string question;
61        int depth = 0;
62        static DialogueManager* singletonPtr_s;
63
64        };//tolua_export
65}//tolua_export
66#endif
Note: See TracBrowser for help on using the repository browser.