- Timestamp:
- Feb 20, 2018, 12:09:09 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Presentation_HS17_merge/src/modules/dialog/Question.h
r11781 r11782 42 42 { 43 43 44 45 44 /** 45 @brief 46 46 class containing the npc side of the Dialog 47 47 48 48 this class contains one possible text option of the npc, it's id and the ids of possible player reactions (answers) 49 49 */ 50 50 51 52 53 54 51 class _DialogExport Question : public BaseObject 52 { 53 public: 54 Question(Context* context); 55 55 56 56 virtual void XMLPort(Element& xmelement, XMLPort::Mode mode); 57 57 58 void setQuestionId(const std::string& Id);//xmlPort-Funktion, setzt Id59 const std::string& getQuestionId() const;//xmlPort-Funktion, gibt Id string zuruek58 void setQuestionId(const std::string& Id); //xmlPort-Funktion, setzt Id 59 const std::string& getQuestionId() const; //xmlPort-Funktion, gibt Id string zuruek 60 60 61 void setQuestion(const std::string& question);//xmlPort-Funktion, setzt Fragen string62 const std::string& getQuestion() const;//xmlPort-Funktion, gibt Fragen string61 void setQuestion(const std::string& question); //xmlPort-Funktion, setzt Fragen string 62 const std::string& getQuestion() const; //xmlPort-Funktion, gibt Fragen string 63 63 64 void addAnswerId(AnswerId* answerId);//xmlPort-Funktion, nimmt AnswerIds von entsprechenden Objekten und fuegt sie in List ein.65 AnswerId* getAnswerId(unsigned int index) const;//xmlPort-Funktion, gibt nichts zuruek64 void addAnswerId(AnswerId* answerId); //xmlPort-Funktion, nimmt AnswerIds von entsprechenden Objekten und fuegt sie in List ein. 65 AnswerId* getAnswerId(unsigned int index) const; //xmlPort-Funktion, gibt nichts zuruek 66 66 67 68 69 67 /** 68 @brief 69 gives pointer to possivle answerIds of this question 70 70 71 72 73 74 71 @return 72 returns pointer to the array with ids of possible pc textoptions 73 */ 74 const std::vector<std::string>& getAnswerIds() const; //returnt Pointer auf Vektor mit allen Ids 75 75 76 76 77 77 78 private: 79 std::string questionId_; //!< id of npc textoption 80 std::string question_;//!< string with npc text81 std::vector<std::string> answerIds_;//!< vector with possible player reactions82 78 private: 79 std::string questionId_; //!< id of npc textoption 80 std::string question_; //!< string with npc text 81 std::vector<std::string> answerIds_; //!< vector with possible player reactions 82 }; 83 83 } 84 84
Note: See TracChangeset
for help on using the changeset viewer.