- Timestamp:
- May 26, 2017, 3:40:04 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Dialogue_FS17/src/modules/dialogue/NextQuestion.cc
r11433 r11435 17 17 { 18 18 RegisterObject(NextQuestion); 19 orxout() << "Klasse aufgerufen" << endl; 19 20 20 DialogueManager& m = DialogueManager::getInstance(); 21 21 m.registerquestion(this); 22 //possibleQuestions=nullptr;22 23 23 24 24 } … … 29 29 30 30 std::string NextQuestion::getquestion(void){ 31 orxout() << question;32 31 return question; 33 32 } … … 51 50 } 52 51 53 //XML and Event stuff52 54 53 void NextQuestion::XMLPort(Element& xmlelement, XMLPort::Mode mode) 55 54 { … … 64 63 bool NextQuestion::execute(bool bTriggered, BaseObject* trigger) 65 64 { 66 //if(!bTriggered) return false;67 68 65 69 70 71 orxout() << "bTriggered is " << bTriggered << endl; 72 73 //for (DialogueManager* hud : ObjectList<DialogueManager>()) 74 //m = hud; 75 76 DialogueManager& m = DialogueManager::getInstance(); 66 DialogueManager& m = DialogueManager::getInstance(); 77 67 78 68 m.setquestion(question); … … 80 70 m.setanswers1(a1); 81 71 m.setanswers2(a2); 82 orxout() << " 1 " << endl;72 83 73 84 74 … … 114 104 } 115 105 116 std::vector<NextQuestion*> NextQuestion::retposQues(){117 //if(possibleQuestions.size()==0) return NULL;118 106 119 orxout() << "SIZE" << possibleQuestions.size() << endl;120 return possibleQuestions;121 }122 107 123 108 124 /*125 126 }*/127 109 128 110
Note: See TracChangeset
for help on using the changeset viewer.