Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

question updates

File size: 1.6 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();
51                void update(NextQuestion* nq);
52
53private:
54        NextQuestion* currentQuestion;
55        std::vector<NextQuestion*> allQuestions;
56        std::string a1;
57        std::string a2;
58        std::string question;
59        static DialogueManager* singletonPtr_s;
60
61        };//tolua_export
62}//tolua_export
63#endif
Note: See TracBrowser for help on using the repository browser.