- Timestamp:
- Feb 20, 2018, 12:09:09 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Presentation_HS17_merge/src/modules/dialog/Answer.h
r11781 r11782 38 38 namespace orxonox 39 39 { 40 41 40 /** 41 @brief 42 42 class containing the pc side of the Dialog 43 43 44 44 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 45 45 */ 46 46 47 class _DialogExport Answer : public BaseObject 48 { 49 public: 50 Answer(Context* context); 51 52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 47 class _DialogExport Answer : public BaseObject 48 { 49 public: 50 Answer(Context* context); 53 51 54 void setAnswerId(const std::string& answerId); //xmlPort-Funktion, setzt AntwortId 55 const std::string& getAnswerId() const; //xmlPort-Funktion, gibt AntwortId 52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 56 53 57 void setNextQuestion(const std::string& nextId); //xmlPort-Funktion, um Dialog zu beenden tag benutzen der von keiner Frage benutzt wird58 const std::string& getNextQuestion() const; //xmlPort-Funktion, gibt Id der Folgefrage 54 void setAnswerId(const std::string& answerId); //xmlPort-Funktion, setzt AntwortId 55 const std::string& getAnswerId() const; //xmlPort-Funktion, gibt AntwortId 59 56 60 void setAnswer(const std::string& awns); //xmlPort-Funktion, setzt Antworttext 61 const std::string& getAnswer() const; //xmlPort-Funktion, gibt Antworttext 57 void setNextQuestion(const std::string& nextId); //xmlPort-Funktion, um Dialog zu beenden tag benutzen der von keiner Frage benutzt wird 58 const std::string& getNextQuestion() const; //xmlPort-Funktion, gibt Id der Folgefrage 62 59 63 private: 64 std::string answerId_; //!< id of the pc textoption 65 std::string answer_; //!< string with the pc text 66 std::string nextQuestionId_; //!< id of the npc reaction to pc answer 67 }; 60 void setAnswer(const std::string& awns); //xmlPort-Funktion, setzt Antworttext 61 const std::string& getAnswer() const; //xmlPort-Funktion, gibt Antworttext 62 63 private: 64 std::string answerId_; //!< id of the pc textoption 65 std::string answer_; //!< string with the pc text 66 std::string nextQuestionId_; //!< id of the npc reaction to pc answer 67 }; 68 68 } 69 69
Note: See TracChangeset
for help on using the changeset viewer.