Changeset 11607 for code/branches/Dialog_HS17/src/modules/dialog/Dialog.h
- Timestamp:
- Nov 27, 2017, 4:57:47 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Dialog_HS17/src/modules/dialog/Dialog.h
r11579 r11607 1 #ifndef _Dialog_H__ 2 #define _Dialog_H__ 3 1 4 #include "core/BaseObject.h" 2 5 #include "Question.h" 3 6 #include "Answer.h" 4 7 #include "core/XMLPort.h" 8 #include "core/CoreIncludes.h" 5 9 #include "overlays/OrxonoxOverlay.h" 6 10 … … 13 17 public: 14 18 Dialog(Context* context); 15 virtual ~Dialog();19 // virtual ~Dialog(); 16 20 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 17 21 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode); … … 23 27 std::string getCurrentQuestionId(); 24 28 25 void addQuestion(Question question); //fuegt Question der Map hinzu26 void addAnswer(Answer answer); //fuegt Answer der Map hinzu29 void addQuestion(Question* question); //fuegt Question der Map hinzu 30 void addAnswer(Answer* answer); //fuegt Answer der Map hinzu 27 31 28 std::string getQuestion(); //tolua_export // returned string der momentanen Frage29 std::string getAnswer(std::string answerId); //tolua_export //returned sting der Antwort zur Id.32 Question* getQuestion(unsigned int index) const; //tolua_export // returned string der momentanen Frage 33 Answer* getAnswer(unsigned int index) const; //tolua_export // returned string der momentanen Frage 30 34 std::vector<std::string> getAnswers(); //tolua_export // returned vector mit allen momentanen AntwortenIds 31 35 32 bool execute(bool bTriggered, BaseObject* trigger);36 bool execute(bool bTriggered, BaseObject* trigger); 33 37 34 38 void update(std::string givenAnswer); //tolua_export … … 44 48 }; 45 49 } 50 51 #endif
Note: See TracChangeset
for help on using the changeset viewer.