Last change
on this file since 11634 was
11612,
checked in by kuchlert, 7 years ago
|
funktioniert bis dialogmanager getInstance, angefangen und noch zu tun: luafunktionen von dialogmanager, lua und layout
|
File size:
789 bytes
|
Line | |
---|
1 | #include "DialogManager.h" |
---|
2 | #include "core/CoreIncludes.h" |
---|
3 | #include "core/singleton/ScopedSingletonIncludes.h" |
---|
4 | #include <string> |
---|
5 | |
---|
6 | namespace orxonox { |
---|
7 | ManageScopedSingleton(DialogManager, ScopeID::ROOT, false); |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | DialogManager::DialogManager() |
---|
12 | { |
---|
13 | this->currentTalk_ = nullptr; |
---|
14 | } |
---|
15 | |
---|
16 | void DialogManager::setDialog(Dialog* dialog) |
---|
17 | { |
---|
18 | this->currentTalk_ = dialog; |
---|
19 | } |
---|
20 | |
---|
21 | //from here onward funcionality for lua axports |
---|
22 | |
---|
23 | std::string DialogManager::getQuestion() |
---|
24 | { |
---|
25 | return this->currentTalk_->getQuestionString(); |
---|
26 | } |
---|
27 | |
---|
28 | /* |
---|
29 | std::vector<std::string> DialogManager::getAnswers() |
---|
30 | { |
---|
31 | // lua hat komisch arrays (eigentlich tables), wie implementiert man answers so das man nacher den key der gegeben antwort a |
---|
32 | // hat um ihn fuer update zu benutzen? |
---|
33 | } |
---|
34 | */ |
---|
35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.