Rev | Line | |
---|
[11579] | 1 | #include "core/BaseObject.h" |
---|
| 2 | #include "AnswerId.h" |
---|
| 3 | #include "core/XMLPort.h" |
---|
| 4 | |
---|
| 5 | #include <string> |
---|
| 6 | |
---|
| 7 | namespace orxonox |
---|
| 8 | { |
---|
| 9 | class Question : public BaseObject |
---|
| 10 | { |
---|
| 11 | public: |
---|
| 12 | Question(Context* context); |
---|
| 13 | virtual ~Question(); |
---|
| 14 | virtual void XMLPort(Element& xmelement, XMLPort::Mode mode); |
---|
| 15 | |
---|
| 16 | void setQuestionId(std::string Id); |
---|
| 17 | std::string getQuestionId(); |
---|
| 18 | |
---|
| 19 | void setQuestion(std::string question); |
---|
| 20 | std::string getQuestion(); |
---|
| 21 | |
---|
| 22 | void addAnswerId(AnswerId answerId); //leer lassen um Dialog zu beenden |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | //braucht es getAnswerId oder reicht es andere funktion anzugeben, |
---|
| 26 | // die sowieso gebraucht wird? |
---|
| 27 | |
---|
| 28 | std::vector<std::string> getAnswerIds(); //returnt vektor mit allen Ids |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | private: |
---|
| 33 | std::string questionId_; |
---|
| 34 | std::string question_; |
---|
| 35 | std::vector<std::string> answerIds_; |
---|
| 36 | }; |
---|
| 37 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.