Changeset 10077 for code/branches/presentationFS14/src
- Timestamp:
- May 27, 2014, 9:54:25 AM (11 years ago)
- Location:
- code/branches/presentationFS14/src/orxonox/controllers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationFS14/src/orxonox/controllers/ControllerDirector.cc
r10076 r10077 27 27 28 28 // output a message to ensure we know the constructor was run 29 orxout( )<<"hello universe constructor blablub"<< endl;29 orxout(verbose)<<"hello universe constructor blablub"<< endl; 30 30 31 31 … … 42 42 SUPER(ControllerDirector, XMLPort, xmlelement, mode); 43 43 44 orxout( )<< "ControllerDirector::XMLPort "44 orxout(verbose)<< "ControllerDirector::XMLPort " 45 45 << "An instance of ControllerDirector has been created." << endl; 46 46 } … … 63 63 { 64 64 /* Output a message confirming that the function was called */ 65 orxout( )<<"test takecontrol."<< endl;65 orxout(verbose)<<"test takecontrol."<< endl; 66 66 67 67 /* First, we set up a new controller to attach to the unit that … … 112 112 this->player_ = NULL; 113 113 114 orxout( ) << "Preparation to take Control!" << endl;114 orxout(verbose) << "Preparation to take Control!" << endl; 115 115 116 116 // Check whether it is a player trigger and extract pawn from it … … 125 125 else 126 126 { 127 orxout( ) << "ControllerDirector::preparationToTakeControl "127 orxout(verbose) << "ControllerDirector::preparationToTakeControl " 128 128 << "Not a player trigger, can't extract pawn from it.." << endl; 129 129 return false; -
code/branches/presentationFS14/src/orxonox/controllers/ScriptController.cc
r10076 r10077 71 71 { 72 72 /* Output some debugging information */ 73 orxout( ) << "ScriptController: Taking control" << endl;74 orxout( ) << "This-pointer: " << this << endl;73 orxout(verbose) << "ScriptController: Taking control" << endl; 74 orxout(verbose) << "This-pointer: " << this << endl; 75 75 76 76 /* Set the controller ID (the argument here should be nonzero) */ … … 100 100 { 101 101 /* Output a message that confirms this function was called */ 102 orxout( ) << "Great success!" << std::endl;102 orxout(verbose) << "Great success!" << std::endl; 103 103 104 104 /* Debugging: print all the scriptcontroller object pointers */ … … 106 106 ObjectList<ScriptController>::begin(); 107 107 it != ObjectList<ScriptController>::end(); ++it) 108 { orxout( ) << "Have object in list: " << *it << endl; }108 { orxout(verbose) << "Have object in list: " << *it << endl; } 109 109 110 110 /* Find the first one with a nonzero ID */ … … 115 115 // TODO: do some selection here. Currently just returns the first one 116 116 if( (*it)->getID() > 0 ) 117 { orxout( ) << "Controller to return: " << *it << endl;117 { orxout(verbose) << "Controller to return: " << *it << endl; 118 118 return *it; 119 119 } … … 231 231 tmp.eventTime = executionTime; 232 232 233 orxout( ) << tmp.fctName << endl;233 orxout(verbose) << tmp.fctName << endl; 234 234 235 235 /* Add the created event to the event list */ 236 236 if(eventList.size()==0) 237 237 { /* The list is still empty, just add it */ 238 orxout( ) << "eventList empty (01)" << endl;238 orxout(verbose) << "eventList empty (01)" << endl; 239 239 eventList.insert(eventList.begin(), tmp); 240 240 this->eventno += 1;
Note: See TracChangeset
for help on using the changeset viewer.