Changeset 10057 for code/branches/ScriptableController/src/orxonox
- Timestamp:
- May 15, 2014, 2:18:08 PM (11 years ago)
- Location:
- code/branches/ScriptableController/src/orxonox/controllers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController/src/orxonox/controllers/ControllerDirector.cc
r10047 r10057 27 27 28 28 // output a message to ensure we know the constructor was run 29 orxout()<<"hello universe constructor"<< endl; 29 orxout()<<"hello universe constructor blablub"<< endl; 30 31 30 32 31 33 // Initialize member variables … … 96 98 * variable "newctrlid" defined, which means it can make use of it. 97 99 */ 100 98 101 ls->doFile("testscript.lua"); 99 102 -
code/branches/ScriptableController/src/orxonox/controllers/ScriptController.cc
r10056 r10057 36 36 namespace orxonox 37 37 { 38 float scTime=0; /*initiali se time, to coordinate eventTime*/38 float scTime=0; /*initialize time, to coordinate eventTime*/ 39 39 40 40 … … 117 117 if(ev.fctName=="moveToPosition_beta") 118 118 { 119 119 120 moveToPosition_beta(ev.xCoord,ev.yCoord,ev.zCoord); 120 121 } … … 137 138 /*TO DO: execute the function: eventList[0].fctName*/ 138 139 139 140 execute(eventList[0]); 140 141 eventList.erase(eventList.begin()); 141 142 } … … 167 168 void ScriptController::eventScheduler(std::string instruction, float x, float y, float z, float executionTime) 168 169 { 170 169 171 /*put data (from LUA) into time-sorted eventList*/ 170 172 /*nimmt den befehl und die argumente aus luascript und ertellt einen struct pro event, diese structs werden sortiert nach eventTime*/ … … 195 197 } 196 198 199 197 200 } 198 201
Note: See TracChangeset
for help on using the changeset viewer.