- Timestamp:
- May 4, 2017, 4:11:36 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Dialogue_FS17/src/modules/dialogue/DialogueManager.cc
r11406 r11413 36 36 37 37 void DialogueManager::setquestion(std::string q){ 38 orxout() << "setquestion" << endl;39 38 question=q; 40 orxout() << "Question is " << question;39 41 40 } 42 41 … … 44 43 orxout() << question << endl; 45 44 return question; 45 } 46 void DialogueManager::setanswers1(std::string a1){ 47 orxout() << "setanswers1" << endl; 48 this->a1=a1; 49 orxout() << "A1 is " << a1; 50 } 51 52 void DialogueManager::setanswers2(std::string a2){ 53 this->a2=a2; 54 } 55 56 57 58 std::string DialogueManager::getanswers1(void){ 59 orxout() << "getanswers1" << endl; 60 return a1; 61 } 62 63 std::string DialogueManager::getanswers2(void){ 64 return a2; 65 } 66 bool DialogueManager::a1clicked(void){ 67 orxout() << "a1 clicked" << endl; 68 return true; 69 } 70 bool DialogueManager::a2clicked(void){ 71 orxout() << "a2 clicked" << endl; 72 return true; 46 73 } 47 74 /*void DialogueManager::XMLPort(Element& xmlelement, XMLPort::Mode mode) … … 60 87 61 88 62 void DialogueManager::setanswers(std::string option1, std::string option2, std::string option3){ 63 options.at(0)=option1; 64 options.at(1)=option2; 65 options.at(2)=option3; 66 } 67 89 68 90 vector<std::string> DialogueManager::getanswers(void){ 69 91 return options;
Note: See TracChangeset
for help on using the changeset viewer.