Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 4, 2017, 4:11:36 PM (8 years ago)
Author:
rrogge
Message:

Buttons

File:
1 edited

Legend:

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

    r11406 r11413  
    3636
    3737    void DialogueManager::setquestion(std::string q){
    38                 orxout() << "setquestion" << endl;
    3938                question=q;
    40                 orxout() << "Question is " << question;
     39               
    4140        }
    4241
     
    4443                orxout() << question << endl;
    4544                return question;
     45        }
     46        void DialogueManager::setanswers1(std::string a1){
     47                orxout() << "setanswers1" << endl;
     48                this->a1=a1;
     49                orxout() << "A1 is " << a1;
     50                                }
     51
     52        void DialogueManager::setanswers2(std::string a2){
     53                this->a2=a2;
     54                                }
     55
     56       
     57
     58        std::string DialogueManager::getanswers1(void){
     59                orxout() << "getanswers1" << endl;
     60                return a1;
     61        }
     62
     63        std::string DialogueManager::getanswers2(void){
     64                return a2;
     65        }
     66        bool DialogueManager::a1clicked(void){
     67                orxout() << "a1 clicked" << endl;
     68                return true;
     69        }
     70        bool DialogueManager::a2clicked(void){
     71                orxout() << "a2 clicked" << endl;
     72                return true;
    4673        }
    4774        /*void DialogueManager::XMLPort(Element& xmlelement, XMLPort::Mode mode)
     
    6087       
    6188
    62         void DialogueManager::setanswers(std::string option1, std::string option2, std::string option3){
    63                 options.at(0)=option1;
    64                 options.at(1)=option2;
    65                 options.at(2)=option3;
    66         }
    67 
     89       
    6890        vector<std::string> DialogueManager::getanswers(void){
    6991                return options;
Note: See TracChangeset for help on using the changeset viewer.