Changeset 11432 for code/branches/Dialogue_FS17/src/modules
- Timestamp:
- May 18, 2017, 5:05:53 PM (7 years ago)
- Location:
- code/branches/Dialogue_FS17/src/modules/dialogue
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Dialogue_FS17/src/modules/dialogue/DialogueManager.cc
r11428 r11432 47 47 48 48 } 49 void DialogueManager::setCurrentQuestion(NextQuestion* nq){ 50 currentQuestion=nq; 51 52 } 49 53 50 54 std::string DialogueManager::getquestion(void){ … … 92 96 this->setanswers1(nq->getanswers1()); 93 97 this->setanswers2(nq->getanswers2()); 98 depth=depth+1; 99 100 94 101 } 95 102 void DialogueManager::clean(){ 103 orxout() <<" depth " << depth << endl; 104 //allQuestions.at(2*depth+1); 105 } 96 106 bool DialogueManager::theEnd(){ 97 107 if((currentQuestion->possibleQuestions).empty()) { -
code/branches/Dialogue_FS17/src/modules/dialogue/DialogueManager.h
r11428 r11432 50 50 bool theEnd(); //tolua_export 51 51 void update(NextQuestion* nq); 52 void clean(); //tolua_export 53 void setCurrentQuestion(NextQuestion* q); 52 54 53 55 private: … … 57 59 std::string a2; 58 60 std::string question; 61 int depth = 0; 59 62 static DialogueManager* singletonPtr_s; 60 63 -
code/branches/Dialogue_FS17/src/modules/dialogue/NextQuestion.cc
r11428 r11432 77 77 78 78 m.setquestion(question); 79 m.setCurrentQuestion(this); 79 80 m.setanswers1(a1); 80 81 m.setanswers2(a2); -
code/branches/Dialogue_FS17/src/modules/dialogue/NextQuestion.h
r11421 r11432 49 49 std::string a1; 50 50 std::string a2; 51 51 52 52 53 53
Note: See TracChangeset
for help on using the changeset viewer.