Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 20, 2018, 12:09:09 AM (7 years ago)
Author:
landauf
Message:

tabs → spaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Presentation_HS17_merge/src/modules/dialog/DialogManager.cc

    r11781 r11782  
    3333
    3434namespace orxonox {
    35         ManageScopedSingleton(DialogManager, ScopeID::ROOT, false);
    36        
     35    ManageScopedSingleton(DialogManager, ScopeID::ROOT, false);
    3736
    38        
    39         DialogManager::DialogManager()
    40         {
    41                 this->currentTalk_ = nullptr;
    42                 this->answerIds_ = nullptr;
    43         }
    4437
    45         void DialogManager::setDialog(Dialog* dialog)
    46         {
    47                 this->currentTalk_ = dialog;
    48                 this->answerIds_ = &this->currentTalk_->getAnswerIds();
    49         }
    5038
    51         //from here onward funcionality for lua axports
     39    DialogManager::DialogManager()
     40    {
     41        this->currentTalk_ = nullptr;
     42        this->answerIds_ = nullptr;
     43    }
     44
     45    void DialogManager::setDialog(Dialog* dialog)
     46    {
     47        this->currentTalk_ = dialog;
     48        this->answerIds_ = &this->currentTalk_->getAnswerIds();
     49    }
     50
     51    //from here onward funcionality for lua axports
    5252
    5353    std::string DialogManager::getQuestion()
    5454    {
    55         return this->currentTalk_->getQuestionString();
     55        return this->currentTalk_->getQuestionString();
    5656    }
    5757
     
    6363    std::string DialogManager::getAnswer(int index)
    6464    {
    65         return this->currentTalk_->getAnswerString(this->answerIds_->at(index));
     65        return this->currentTalk_->getAnswerString(this->answerIds_->at(index));
    6666    }
    67        
     67
    6868    std::string DialogManager::getPerson()
    6969    {
    70         return this->currentTalk_->getName();
     70        return this->currentTalk_->getName();
    7171    }
    7272
     
    8686    void DialogManager::update(int index)
    8787    {
    88         this->currentTalk_->update(this->answerIds_->at(index));
    89         this->answerIds_ = &this->currentTalk_->getAnswerIds();
     88        this->currentTalk_->update(this->answerIds_->at(index));
     89        this->answerIds_ = &this->currentTalk_->getAnswerIds();
    9090    }
    9191}
Note: See TracChangeset for help on using the changeset viewer.