Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Funktion der Buttons noch fehlerhaft

File size: 1.8 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                bool a1clicked(void); //tolua_export
49                bool a2clicked(void); //tolua_export
50                        /*std::string setnpc(std::string npc);
51
52                        void setanswers(std::string option1, std::string option2, std::string option3);
53                        std::vector <std::string> getanswers(void);
54
55                        int getnumOptions();
56                       
57
58                       
59                        std::string npc;
60                        std::vector<std::string> options;
61               
62*/
63private:
64        NextQuestion* currentQuestion;
65        std::vector<NextQuestion*> allQuestions;
66        std::string a1;
67        std::string a2;
68        std::string question;
69        static DialogueManager* singletonPtr_s;
70
71        };//tolua_export
72}//tolua_export
73#endif
Note: See TracBrowser for help on using the repository browser.