source:
code/branches/Dialog_HS17/src/modules/dialog/DialogManager.h
@
11618
Last change on this file since 11618 was 11612, checked in by kuchlert, 7 years ago | |
---|---|
File size: 965 bytes |
Rev | Line | |
---|---|---|
[11579] | 1 | #ifndef _DialogManager_H__ |
2 | #define _DialogManager_H__ | |
3 | ||
[11611] | 4 | #include "DialogPrereqs.h" |
[11579] | 5 | #include "util/Singleton.h" |
[11612] | 6 | #include "core/singleton/ScopedSingletonIncludes.h" |
[11579] | 7 | #include "core/object/Listable.h" |
8 | #include "Dialog.h" | |
9 | ||
[11612] | 10 | #include <string> |
11 | ||
12 | namespace orxonox //tolua_export | |
13 | ||
14 | {//tolua_export | |
15 | class _OrxonoxExport DialogManager //tolua_export | |
16 | : public Singleton<DialogManager> | |
17 | {//tolua_export | |
[11579] | 18 | friend class Singleton<DialogManager>; |
[11612] | 19 | |
[11579] | 20 | public: |
[11612] | 21 | |
22 | DialogManager(); | |
23 | ||
[11579] | 24 | |
[11612] | 25 | static DialogManager& getInstance() { return Singleton<DialogManager>::getInstance(); } //tolua_export |
[11579] | 26 | |
[11612] | 27 | void setDialog(Dialog* dialog); |
[11579] | 28 | |
[11612] | 29 | //from here on luafunctionality is declared |
[11579] | 30 | |
[11612] | 31 | std::string getQuestion(); //tolua_export |
32 | //std::vector<std::string> getAnswers(); | |
[11611] | 33 | |
[11612] | 34 | private: |
35 | static DialogManager* singletonPtr_s; | |
[11611] | 36 | |
[11612] | 37 | Dialog* currentTalk_; |
[11579] | 38 | |
[11612] | 39 | };//tolua_export |
40 | }//tolua_export | |
[11579] | 41 | |
42 | #endif /* _DialogManager_H__ */ |
Note: See TracBrowser
for help on using the repository browser.