Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Singletonkram figured out

File size: 1.6 KB
Line 
1#include "core/CoreIncludes.h"
2#include "core/LuaState.h"
3#include "core/GUIManager.h"
4#include "core/class/Identifier.h"
5#include "core/singleton/ScopedSingletonIncludes.h"
6#include "network/Host.h"
7#include "network/NetworkFunctionIncludes.h"
8#include "util/Singleton.h"
9#include <string>
10#include <vector>
11#include "OrxonoxPrereqs.h"
12#include "core/config/Configurable.h"
13#include "core/XMLPort.h"
14#include "core/EventIncludes.h"
15
16
17
18
19
20namespace orxonox //tolua_export
21
22{//tolua_export
23        class _OrxonoxExport DialogueManager //tolua_export
24        : public Singleton<DialogueManager>
25        {//tolua_export
26                friend class Singleton<DialogueManager>;
27       
28                public:
29               
30
31                DialogueManager(); 
32               
33
34                static DialogueManager& getInstance() { return Singleton<DialogueManager>::getInstance(); } //tolua_export
35               
36                void setquestion(std::string question); //tolua_export
37                std::string getquestion(void); //tolua_export
38               
39
40                void setanswers1(std::string a1); //tolua_export
41                void setanswers2(std::string a2); //tolua_export
42                std::string getanswers1(void); //tolua_export
43                std::string getanswers2(void); //tolua_export
44                bool a1clicked(void); //tolua_export
45                bool a2clicked(void); //tolua_export
46                        /*std::string setnpc(std::string npc);
47
48                        void setanswers(std::string option1, std::string option2, std::string option3);
49                        std::vector <std::string> getanswers(void);
50
51                        int getnumOptions();
52                       
53
54                       
55                        std::string npc;
56                        std::vector<std::string> options;
57               
58*/
59private:
60        //NextQuestion currentQuestion;
61        std::string a1;
62        std::string a2;
63        std::string question;
64        static DialogueManager* singletonPtr_s;
65
66        };//tolua_export
67}//tolua_export
68
Note: See TracBrowser for help on using the repository browser.