| Rev | Line | |
|---|
| [11515] | 1 | #include "core/BaseObject.h" |
|---|
| 2 | #include "Question.h" |
|---|
| 3 | #include "Awnser.h" |
|---|
| 4 | |
|---|
| 5 | #include <string> |
|---|
| 6 | |
|---|
| 7 | namespace orxonox{ |
|---|
| 8 | class Dialog: public BaseObject |
|---|
| 9 | { |
|---|
| 10 | public: |
|---|
| 11 | Dialog(Context* context); |
|---|
| 12 | virual ~Dialog(); |
|---|
| 13 | virual void XMLPort(Element& xmlelement, XMLPort::Mode mode); |
|---|
| 14 | |
|---|
| 15 | void setName(std::string name); |
|---|
| 16 | std::string getName(); |
|---|
| 17 | |
|---|
| 18 | void setCurrentQuestionId(std::string questionId) |
|---|
| 19 | std::string getCurrentQuestionId(); |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | void addQuestion(std::string questionId, Question); //fuegt Question der Map hinzu |
|---|
| 23 | std::string getQuestion(); // returned nichts |
|---|
| 24 | |
|---|
| 25 | void addAwnser(std::string awnserId, Awnser); //fuegt Awnser der Map hinzu |
|---|
| 26 | Awnser getAwnser(); // returned nichts |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | private: |
|---|
| 32 | std::string name_; |
|---|
| 33 | std::string currentQUestionId_; |
|---|
| 34 | std::map<std::string, Question> questions_; |
|---|
| 35 | std::map<std::string, Awnser> awnsers_; |
|---|
| 36 | } |
|---|
| 37 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.