Changeset 10035 for code/branches/ScriptableController
- Timestamp:
- Apr 17, 2014, 2:27:35 PM (11 years ago)
- Location:
- code/branches/ScriptableController
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController/data/levels/levelTry.oxw
r10026 r10035 1 1 <!-- First levelFile of mkronig and samuezu. It was copied from dockingToASpaceStation.oxw and modified a little bit --> 2 2 <LevelInfo 3 name = " Fancy orxout tests"3 name = "levelTry" 4 4 description = "Docking into a spacestation." 5 5 tags = "showcase" … … 81 81 <ControllerDirector position="0,0,0"> 82 82 <events> 83 < party>83 <takeControl> 84 84 <EventListener event="takeControl" /> 85 </ party>85 </takeControl> 86 86 87 87 </events> -
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.