Changeset 11428 for code/branches/Dialogue_FS17/src/modules
- Timestamp:
- May 18, 2017, 4:06:53 PM (7 years ago)
- Location:
- code/branches/Dialogue_FS17/src/modules/dialogue
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Dialogue_FS17/src/modules/dialogue/DialogueManager.cc
r11421 r11428 74 74 void DialogueManager::a1clicked(void){ 75 75 76 assert((currentQuestion->retposQues())[0]); 77 orxout() << "a14 clicked" << endl; 78 orxout() << currentQuestion->possibleQuestions[0] << endl; 76 79 77 currentQuestion = currentQuestion->possibleQuestions[0]; 80 78 update(currentQuestion); … … 84 82 void DialogueManager::a2clicked(void){ 85 83 orxout() << "a2 clicked" << endl; 84 85 currentQuestion = currentQuestion->possibleQuestions[1]; 86 update(currentQuestion); 87 86 88 87 89 } … … 92 94 } 93 95 94 96 bool DialogueManager::theEnd(){ 97 if((currentQuestion->possibleQuestions).empty()) { 98 orxout() << "endtrue" << endl; 99 return true;} 100 else return false; 101 } 95 102 96 103 … … 98 105 /* 99 106 100 bool DialogueManager::theEnd(){ 101 if(currentQuestion->retposQues()) return true; 102 else return false; 103 } 107 104 108 105 109 -
code/branches/Dialogue_FS17/src/modules/dialogue/DialogueManager.h
r11421 r11428 48 48 void a1clicked(void); //tolua_export 49 49 void a2clicked(void); //tolua_export 50 //bool theEnd();50 bool theEnd(); //tolua_export 51 51 void update(NextQuestion* nq); 52 52 -
code/branches/Dialogue_FS17/src/modules/dialogue/NextQuestion.cc
r11421 r11428 20 20 DialogueManager& m = DialogueManager::getInstance(); 21 21 m.registerquestion(this); 22 22 //possibleQuestions=nullptr; 23 23 24 24 } … … 114 114 115 115 std::vector<NextQuestion*> NextQuestion::retposQues(){ 116 orxout() << "fish" << endl;117 assert(possibleQuestions[0]);118 orxout() << possibleQuestions.size() << endl;116 //if(possibleQuestions.size()==0) return NULL; 117 118 orxout() << "SIZE" << possibleQuestions.size() << endl; 119 119 return possibleQuestions; 120 120 }
Note: See TracChangeset
for help on using the changeset viewer.