Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Dialog_HS17/src/modules/dialog/DialogManager.h @ 11642

Last change on this file since 11642 was 11642, checked in by kuchlert, 6 years ago

erste version bei der listenauswahl funktioniert

File size: 1.2 KB
Line 
1#ifndef _DialogManager_H__
2#define _DialogManager_H__
3
4#include "DialogPrereqs.h"
5#include "util/Singleton.h"
6#include "core/singleton/ScopedSingletonIncludes.h"
7#include "core/object/Listable.h"
8#include "Dialog.h"
9
10#include <string>
11
12namespace orxonox //tolua_export
13
14{//tolua_export
15    class _OrxonoxExport DialogManager //tolua_export
16    : public Singleton<DialogManager>
17    {//tolua_export
18        friend class Singleton<DialogManager>;
19   
20        public:
21       
22        DialogManager(); 
23       
24
25        static DialogManager& getInstance() { return Singleton<DialogManager>::getInstance(); } //tolua_export
26
27        void setDialog(Dialog* dialog);
28
29        //from here on luafunctionality is declared
30
31        std::string getQuestion(); //tolua_export
32        int getSize(); //tolua_export
33        std::string getAnswer(int index); //tolua_export
34        std::string getPerson(); //tolua_export
35        bool endtest(); //tolua_export
36        void update(int index); //tolua_export
37
38private:
39    static DialogManager* singletonPtr_s;
40
41    Dialog* currentTalk_;
42    std::vector<std::string>* answerIds_;
43
44    };//tolua_export
45}//tolua_export
46
47#endif /* _DialogManager_H__ */
Note: See TracBrowser for help on using the repository browser.