- Timestamp:
- May 26, 2017, 3:40:04 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Dialogue_FS17/src/modules/dialogue/DialogueManager.h
r11432 r11435 12 12 #include <string> 13 13 #include <vector> 14 //#include "OrxonoxPrereqs.h"15 14 #include "core/config/Configurable.h" 16 15 #include "core/XMLPort.h" … … 32 31 public: 33 32 34 35 33 DialogueManager(); 36 34 … … 38 36 static DialogueManager& getInstance() { return Singleton<DialogueManager>::getInstance(); } //tolua_export 39 37 38 40 39 void setquestion(std::string question); //tolua_export 41 40 std::string getquestion(void); //tolua_export 42 41 43 void registerquestion(NextQuestion* nq);42 44 43 void setanswers1(std::string a1); //tolua_export 44 std::string getanswers1(void); //tolua_export 45 45 46 void setanswers2(std::string a2); //tolua_export 46 std::string getanswers1(void); //tolua_export47 47 std::string getanswers2(void); //tolua_export 48 49 void setCurrentQuestion(NextQuestion* q); 50 51 //Sets the current Question to the question corresponding to the first/second answer 48 52 void a1clicked(void); //tolua_export 49 53 void a2clicked(void); //tolua_export 54 55 //Checks whether there are any more Questions to come 50 56 bool theEnd(); //tolua_export 57 58 //Sets question and a1, a2 for new currentQuestion 51 59 void update(NextQuestion* nq); 52 void clean(); //tolua_export 53 void setCurrentQuestion(NextQuestion* q); 60 61 //Is executed whenever a NextQuestion is created and pushes all NextQuestion into the allQuestion vector. 62 void registerquestion(NextQuestion* nq); 54 63 55 64 private: 56 NextQuestion* currentQuestion; 65 NextQuestion* currentQuestion; //The Question which is currently displayed 57 66 std::vector<NextQuestion*> allQuestions; 58 std::string a1; 59 std::string a2; 67 std::string a1; //answer on first button 68 std::string a2; //answer on second button 60 69 std::string question; 61 int depth = 0;62 70 static DialogueManager* singletonPtr_s; 63 71
Note: See TracChangeset
for help on using the changeset viewer.