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
|
Rev | Line | |
---|
[11607] | 1 | #include "DialogManager.h" |
---|
| 2 | #include "core/CoreIncludes.h" |
---|
| 3 | #include "core/singleton/ScopedSingletonIncludes.h" |
---|
[11612] | 4 | #include <string> |
---|
[11607] | 5 | |
---|
[11612] | 6 | namespace orxonox { |
---|
| 7 | ManageScopedSingleton(DialogManager, ScopeID::ROOT, false); |
---|
| 8 | |
---|
[11607] | 9 | |
---|
[11612] | 10 | |
---|
| 11 | DialogManager::DialogManager() |
---|
| 12 | { |
---|
| 13 | this->currentTalk_ = nullptr; |
---|
| 14 | } |
---|
[11607] | 15 | |
---|
[11612] | 16 | void DialogManager::setDialog(Dialog* dialog) |
---|
[11607] | 17 | { |
---|
| 18 | this->currentTalk_ = dialog; |
---|
| 19 | } |
---|
| 20 | |
---|
[11612] | 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 | */ |
---|
[11607] | 35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.