Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2017, 3:40:04 PM (8 years ago)
Author:
rrogge
Message:

Code aufgeraeumt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Dialogue_FS17/src/modules/dialogue/DialogueManager.h

    r11432 r11435  
    1212#include <string>
    1313#include <vector>
    14 //#include "OrxonoxPrereqs.h"
    1514#include "core/config/Configurable.h"
    1615#include "core/XMLPort.h"
     
    3231                public:
    3332               
    34 
    3533                DialogueManager();
    3634               
     
    3836                static DialogueManager& getInstance() { return Singleton<DialogueManager>::getInstance(); } //tolua_export
    3937               
     38
    4039                void setquestion(std::string question); //tolua_export
    4140                std::string getquestion(void); //tolua_export
    4241               
    43                 void registerquestion(NextQuestion* nq);
     42               
    4443                void setanswers1(std::string a1); //tolua_export
     44                std::string getanswers1(void); //tolua_export
     45               
    4546                void setanswers2(std::string a2); //tolua_export
    46                 std::string getanswers1(void); //tolua_export
    4747                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 
    4852                void a1clicked(void); //tolua_export
    4953                void a2clicked(void); //tolua_export
     54               
     55                //Checks whether there are any more Questions to come
    5056                bool theEnd(); //tolua_export
     57
     58                //Sets question and a1, a2 for new currentQuestion
    5159                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);
    5463
    5564private:
    56         NextQuestion* currentQuestion;
     65        NextQuestion* currentQuestion; //The Question which is currently displayed
    5766        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
    6069        std::string question;
    61         int depth = 0;
    6270        static DialogueManager* singletonPtr_s;
    6371
Note: See TracChangeset for help on using the changeset viewer.