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