Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 17, 2014, 2:27:35 PM (11 years ago)
Author:
mkronig
Message:

changes on controllerDirector and added some new lua scripts

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  
    1111#include "interfaces/PlayerTrigger.h"
    1212#include "worldentities/pawns/Pawn.h"
    13 #include "LuaState.h"
     13#include "core/LuaState.h"
    1414
    1515
     
    5151    void ControllerDirector::takeControl(Controller * controller, BaseObject * trigger) {
    5252
    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");
    5758       
    5859    }
    5960
    6061       
    61     bool ControllerDirector::preparationToTakeControl(BaseObject * trigger) {
     62    /*bool ControllerDirector::preparationToTakeControl(BaseObject * trigger) {
    6263
    6364            this->pTrigger_ = orxonox_cast<PlayerTrigger*>(trigger);
     
    9899
    99100    }
     101*/
    100102       
    101103   
Note: See TracChangeset for help on using the changeset viewer.