- Timestamp:
- May 26, 2016, 4:38:51 PM (9 years ago)
- Location:
- code/branches/presentationFS16
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationFS16
- Property svn:mergeinfo changed
/code/branches/plehmannFS16 (added) merged: 11137,11141,11152,11165,11167,11172,11178-11179,11183,11187,11190,11204
- Property svn:mergeinfo changed
-
code/branches/presentationFS16/src/orxonox/controllers/ControllerDirector.cc
r11071 r11207 6 6 7 7 #include "ControllerDirector.h" 8 #include " ScriptController.h"8 #include "NewScriptController.h" 9 9 #include "core/CoreIncludes.h" 10 10 … … 64 64 { 65 65 /* Output a message confirming that the function was called */ 66 orxout( verbose)<<"test takecontrol."<< endl;66 orxout()<<"test takecontrol."<< endl; 67 67 68 68 /* First, we set up a new controller to attach to the unit that … … 74 74 { 75 75 /* Create a scriptcontroller object */ 76 ScriptController *newctrl = newScriptController(this->context_);76 NewScriptController *newctrl = new NewScriptController(this->context_); 77 77 78 78 /* Make the player we were given its slave */ … … 105 105 * the next time it is triggered */ 106 106 ctrlid += 1; 107 108 orxout()<<"swag"<< endl; 107 109 } 108 110 … … 112 114 this->player_ = nullptr; 113 115 114 orxout( verbose) << "Preparation to take Control!" << endl;116 orxout() << "Preparation to take Control!" << endl; 115 117 116 118 // Check whether it is a player trigger and extract pawn from it … … 121 123 122 124 // Check if there actually was a player returned. 123 if( this->player_ == nullptr) return false; 125 if( this->player_ == nullptr) { 126 orxout()<<"swag control"<< endl; 127 128 return false; 129 } 124 130 } 125 131 else 126 132 { 127 orxout( verbose) << "ControllerDirector::preparationToTakeControl "133 orxout() << "ControllerDirector::preparationToTakeControl " 128 134 << "Not a player trigger, can't extract pawn from it.." << endl; 129 135 return false;
Note: See TracChangeset
for help on using the changeset viewer.