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
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ScriptableController/data/levels/levelTry.oxw

    r10026 r10035  
    11<!-- First levelFile of mkronig and samuezu. It was copied from dockingToASpaceStation.oxw and modified a little bit -->
    22<LevelInfo
    3  name = "Fancy orxout tests"
     3 name = "levelTry"
    44 description = "Docking into a spacestation."
    55 tags = "showcase"
     
    8181    <ControllerDirector position="0,0,0">
    8282        <events>
    83             <party>
     83            <takeControl>
    8484                <EventListener event="takeControl" />
    85             </party>
     85            </takeControl>
    8686
    8787        </events>
  • 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.