Changeset 10035 for code/branches/ScriptableController/src/orxonox
- Timestamp:
- Apr 17, 2014, 2:27:35 PM (11 years ago)
- Location:
- code/branches/ScriptableController/src/orxonox/controllers
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController/src/orxonox/controllers/ControllerDirector.cc
r10030 r10035 11 11 #include "interfaces/PlayerTrigger.h" 12 12 #include "worldentities/pawns/Pawn.h" 13 #include " LuaState.h"13 #include "core/LuaState.h" 14 14 15 15 … … 51 51 void ControllerDirector::takeControl(Controller * controller, BaseObject * trigger) { 52 52 53 preparationToTakeControl(trigger); 54 setNewController(controller); 55 LuaState test = new Luastate(); 56 test.doFile("/tmp/my.lua"); 53 // preparationTo(trigger); 54 // setNewController(controller); 55 LuaState * test = new LuaState(); 56 orxout()<<"test takecontrol."<< endl; 57 test->doFile("testscript.lua"); 57 58 58 59 } 59 60 60 61 61 bool ControllerDirector::preparationToTakeControl(BaseObject * trigger) {62 /*bool ControllerDirector::preparationToTakeControl(BaseObject * trigger) { 62 63 63 64 this->pTrigger_ = orxonox_cast<PlayerTrigger*>(trigger); … … 98 99 99 100 } 101 */ 100 102 101 103
Note: See TracChangeset
for help on using the changeset viewer.