Rev | Line | |
---|
[11607] | 1 | #ifndef _Answer_H__ |
---|
| 2 | #define _Answer_H__ |
---|
| 3 | |
---|
[11579] | 4 | #include "core/BaseObject.h" |
---|
[11611] | 5 | #include "DialogPrereqs.h" |
---|
[11579] | 6 | #include "core/XMLPort.h" |
---|
[11607] | 7 | #include "core/CoreIncludes.h" |
---|
[11579] | 8 | #include <string> |
---|
| 9 | |
---|
| 10 | namespace orxonox |
---|
| 11 | { |
---|
[11656] | 12 | /** |
---|
| 13 | @brief |
---|
| 14 | class containing the pc side of the Dialog |
---|
| 15 | |
---|
| 16 | this class contains one possible text option of the pc, it's id and the id of the reaction of the npc to this answer |
---|
| 17 | */ |
---|
| 18 | |
---|
[11611] | 19 | class _DialogExport Answer : public BaseObject |
---|
[11579] | 20 | { |
---|
| 21 | public: |
---|
| 22 | Answer(Context* context); |
---|
[11611] | 23 | |
---|
[11579] | 24 | virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); |
---|
| 25 | |
---|
[11644] | 26 | void setAnswerId(const std::string& answerId); //xmlPort-Funktion, setzt AntwortId |
---|
| 27 | const std::string& getAnswerId() const; //xmlPort-Funktion, gibt AntwortId |
---|
[11579] | 28 | |
---|
[11644] | 29 | void setNextQuestion(const std::string& nextId); //xmlPort-Funktion, um Dialog zu beenden tag benutzen der von keiner Frage benutzt wird |
---|
| 30 | const std::string& getNextQuestion() const; //xmlPort-Funktion, gibt Id der Folgefrage |
---|
[11579] | 31 | |
---|
[11644] | 32 | void setAnswer(const std::string& awns); //xmlPort-Funktion, setzt Antworttext |
---|
| 33 | const std::string& getAnswer() const; //xmlPort-Funktion, gibt Antworttext |
---|
[11579] | 34 | |
---|
| 35 | private: |
---|
[11656] | 36 | std::string answerId_; //!< id of the pc textoption |
---|
| 37 | std::string answer_; //!< string with the pc text |
---|
| 38 | std::string nextQuestionId_; //!< id of the npc reaction to pc answer |
---|
[11579] | 39 | }; |
---|
| 40 | } |
---|
[11607] | 41 | |
---|
| 42 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.