Rev | Line | |
---|
[11515] | 1 | #include "Awnser.h" |
---|
| 2 | |
---|
| 3 | RegisterClass(Awnser); |
---|
| 4 | |
---|
| 5 | namespace orxonox{ |
---|
| 6 | |
---|
| 7 | // Constructor: |
---|
| 8 | Awnser::Awnser(Context* context) : BaseObject(context) |
---|
| 9 | { |
---|
| 10 | RegisterObject(Awnser); |
---|
| 11 | } |
---|
| 12 | |
---|
| 13 | void Awnser::XMLPort(Element& xmlelement, XMLPort::Mode mode) |
---|
| 14 | { |
---|
| 15 | SUPER(Awnser, XMLPort, xmlelement, mode); |
---|
| 16 | |
---|
| 17 | XMLPortParam(Awnser, "awnser", setAwnser, getAwnser, xmlelement, mode); |
---|
| 18 | XMLPortParam(Awnser, "nextQuestionId", setNextQuestion, getNextQuestion, xmlelement,mode); |
---|
| 19 | } |
---|
| 20 | |
---|
| 21 | void setNextQuestion(std::string nextId) |
---|
| 22 | { |
---|
| 23 | this->nextQuestionId_ = nextId; |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | std::string getNextQuestion() |
---|
| 27 | { |
---|
| 28 | return this->nextQuestionId_; |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | void setAwnser(std::string awnser) |
---|
| 32 | { |
---|
| 33 | this->awnser_ = awnser; |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | std::string getAwnser() |
---|
| 37 | { |
---|
| 38 | return this->awnser_; |
---|
| 39 | } |
---|
| 40 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.