- Timestamp:
- Apr 13, 2017, 3:47:48 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Dialogue_FS17/src/modules/dialogue/NextQuestion.h
r11393 r11401 1 1 #include <vector> 2 2 #include <string> 3 #include "core/class/Identifier.h" 4 #include "OrxonoxPrereqs.h" 5 #include "core/XMLPort.h" 6 #include "core/EventIncludes.h" 7 #include "DialogueManager.h" 3 8 4 #include "core/XMLPort.h" 9 5 10 6 11 namespace orxonox{ 7 void setanswers(std::string option1, std::string option2, std::string option3); 8 std::vector <std::string> getanswers(void); 12 class _OrxonoxExport NextQuestion : public BaseObject 13 { 14 15 //tolua_begin 16 public: 9 17 10 int getnumOptions(); 11 std::vector<std::string> options; 18 NextQuestion (Context* context); // tolua_export 19 20 21 void setquestion(std::string question); 22 std::string getquestion(void); 23 24 25 26 27 28 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 29 30 /*void setanswers(std::string option1, std::string option2, std::string option3); 31 std::vector <std::string> getanswers(void); 32 33 int getnumOptions(); 34 std::vector<std::string> options;*/ 35 36 //Event 37 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode); 38 bool execute(bool bTriggered, BaseObject* trigger); 39 40 41 private: 42 std::string question; 43 DialogueManager* m; 44 45 }; 46 12 47 }
Note: See TracChangeset
for help on using the changeset viewer.