Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Code aufgeraeumt

File:
1 edited

Legend:

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

    r11433 r11435  
    1717    {
    1818        RegisterObject(NextQuestion);
    19         orxout() << "Klasse aufgerufen" << endl;
     19
    2020        DialogueManager& m = DialogueManager::getInstance();
    2121        m.registerquestion(this);
    22        //possibleQuestions=nullptr;
     22       
    2323       
    2424    }
     
    2929
    3030        std::string NextQuestion::getquestion(void){
    31                 orxout() << question;
    3231                return question;
    3332        }
     
    5150         }
    5251       
    53         //XML and Event stuff
     52       
    5453        void NextQuestion::XMLPort(Element& xmlelement, XMLPort::Mode mode)
    5554    {
     
    6463        bool NextQuestion::execute(bool bTriggered, BaseObject* trigger)
    6564    { 
    66         //if(!bTriggered) return false;
    67        
    6865       
    69        
    70 
    71         orxout() << "bTriggered is " << bTriggered << endl;
    72 
    73         //for (DialogueManager* hud : ObjectList<DialogueManager>())
    74             //m = hud;
    75 
    76         DialogueManager& m = DialogueManager::getInstance();
     66        DialogueManager& m = DialogueManager::getInstance();
    7767               
    7868        m.setquestion(question);
     
    8070        m.setanswers1(a1);
    8171        m.setanswers2(a2);
    82         orxout() << " 1 " << endl;
     72       
    8373
    8474       
     
    114104        }
    115105
    116         std::vector<NextQuestion*> NextQuestion::retposQues(){
    117                 //if(possibleQuestions.size()==0) return NULL;
    118106       
    119                 orxout() << "SIZE" << possibleQuestions.size() << endl;
    120                 return possibleQuestions;
    121         }
    122107
    123108
    124         /*
    125 
    126         }*/
    127109
    128110
Note: See TracChangeset for help on using the changeset viewer.