Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

fixed addQuestion and addAnswer in Dialog

File size: 905 bytes
Line 
1#ifndef _DialogManager_H__
2#define _DialogManager_H__
3
4#include "DialogPrereqs.h"
5#include "util/Singleton.h"
6#include "core/object/Listable.h"
7#include "Dialog.h"
8
9namespace orxonox
10{
11    class _DialogExport DialogManager : public Singleton<DialogManager>, public Listable
12    {
13        friend class Singleton<DialogManager>;
14
15        public:
16            DialogManager();
17
18           // int getValue() const { return this->value_; }
19
20                static DialogManager& getInstance() { return Singleton<DialogManager>::getInstance(); } //toloa_export
21
22                void setDialog(Dialog* dialog);
23                const Dialog* getCurrentDialog();
24                bool empty();
25
26            //form here on all lua functionality used in lua scrips is declared
27
28
29        private:
30                Dialog* currentTalk_;
31            //int value_;
32
33            static DialogManager* singletonPtr_s;
34    };
35}
36
37#endif /* _DialogManager_H__ */
Note: See TracBrowser for help on using the repository browser.