- Timestamp:
- Feb 20, 2018, 12:09:09 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Presentation_HS17_merge/src/modules/dialog/Answer.cc
r11781 r11782 33 33 namespace orxonox{ 34 34 35 35 RegisterClass(Answer); 36 36 37 37 38 39 Answer::Answer(Context* context) : BaseObject(context) 40 41 42 38 // Constructor: 39 Answer::Answer(Context* context) : BaseObject(context) 40 { 41 RegisterObject(Answer); 42 } 43 43 44 45 46 44 void Answer::XMLPort(Element& xmlelement, XMLPort::Mode mode) 45 { 46 SUPER(Answer, XMLPort, xmlelement, mode); 47 47 48 49 50 51 48 XMLPortParam(Answer, "Id", setAnswerId, getAnswerId, xmlelement, mode); 49 XMLPortParam(Answer, "answer", setAnswer, getAnswer, xmlelement, mode); 50 XMLPortParam(Answer, "nextQuestionId", setNextQuestion, getNextQuestion, xmlelement,mode); 51 } 52 52 53 54 55 53 void Answer::setAnswerId(const std::string& answerId){ 54 this->answerId_ = answerId; 55 } 56 56 57 58 59 60 57 const std::string& Answer::getAnswerId() const 58 { 59 return this->answerId_; 60 } 61 61 62 63 64 65 62 void Answer::setNextQuestion(const std::string& nextId) 63 { 64 this->nextQuestionId_ = nextId; 65 } 66 66 67 68 69 70 67 const std::string& Answer::getNextQuestion() const 68 { 69 return this->nextQuestionId_; 70 } 71 71 72 73 74 75 72 void Answer::setAnswer(const std::string& answer) 73 { 74 this->answer_ = answer; 75 } 76 76 77 78 79 80 81 } 77 const std::string& Answer::getAnswer() const 78 { 79 return this->answer_; 80 } 81 }
Note: See TracChangeset
for help on using the changeset viewer.