Rev | Line | |
---|
[11579] | 1 | #include "core/BaseObject.h" |
---|
| 2 | #include "core/XMLPort.h" |
---|
| 3 | #include <string> |
---|
| 4 | |
---|
| 5 | namespace orxonox |
---|
| 6 | { |
---|
| 7 | |
---|
| 8 | class Answer : public BaseObject |
---|
| 9 | { |
---|
| 10 | public: |
---|
| 11 | Answer(Context* context); |
---|
| 12 | virtual ~Answer(); |
---|
| 13 | virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); |
---|
| 14 | |
---|
| 15 | void setAnswerId(std::string answerId); |
---|
| 16 | std::string getAnswerId(); |
---|
| 17 | |
---|
| 18 | void setNextQuestion(std::string nextId); // "end" um den dialog zu beenden |
---|
| 19 | std::string getNextQuestion(); |
---|
| 20 | |
---|
| 21 | void setAnswer(std::string awns); |
---|
| 22 | std::string getAnswer(); |
---|
| 23 | |
---|
| 24 | private: |
---|
| 25 | std::string answerId_; |
---|
| 26 | std::string answer_; |
---|
| 27 | std::string nextQuestionId_; |
---|
| 28 | }; |
---|
| 29 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.