#include "DialogManager.h" #include "core/CoreIncludes.h" #include "core/singleton/ScopedSingletonIncludes.h" #include namespace orxonox { ManageScopedSingleton(DialogManager, ScopeID::ROOT, false); DialogManager::DialogManager() { this->currentTalk_ = nullptr; } void DialogManager::setDialog(Dialog* dialog) { this->currentTalk_ = dialog; } //from here onward funcionality for lua axports std::string DialogManager::getQuestion() { return this->currentTalk_->getQuestionString(); } /* std::vector DialogManager::getAnswers() { // lua hat komisch arrays (eigentlich tables), wie implementiert man answers so das man nacher den key der gegeben antwort a // hat um ihn fuer update zu benutzen? } */ }