Last change
on this file since 11611 was
11611,
checked in by kuchlert, 6 years ago
|
fixed addQuestion and addAnswer in Dialog
|
File size:
690 bytes
|
Line | |
---|
1 | #include "DialogManager.h" |
---|
2 | #include "core/CoreIncludes.h" |
---|
3 | #include "core/singleton/ScopedSingletonIncludes.h" |
---|
4 | |
---|
5 | namespace orxonox |
---|
6 | { |
---|
7 | ManageScopedSingleton(DialogManager, ScopeID::ROOT, false); |
---|
8 | |
---|
9 | RegisterAbstractClass(DialogManager).inheritsFrom<Listable>(); |
---|
10 | |
---|
11 | DialogManager::DialogManager() |
---|
12 | { |
---|
13 | RegisterObject(DialogManager); |
---|
14 | |
---|
15 | this->currentTalk_ = NULL; |
---|
16 | } |
---|
17 | |
---|
18 | void DialogManager::setDialog(Dialog* dialog) |
---|
19 | { |
---|
20 | this->currentTalk_ = dialog; |
---|
21 | } |
---|
22 | |
---|
23 | const Dialog* DialogManager::getCurrentDialog() |
---|
24 | { |
---|
25 | return this->currentTalk_; |
---|
26 | } |
---|
27 | |
---|
28 | bool DialogManager::empty() |
---|
29 | { |
---|
30 | if(this->currentTalk_ == NULL) |
---|
31 | { |
---|
32 | return true; |
---|
33 | } |
---|
34 | else |
---|
35 | { |
---|
36 | return false; |
---|
37 | } |
---|
38 | } |
---|
39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.