1/14/2010

State.Test.01


Test 01

function PostBeginPlay()
{
    `log("PostBeginPlay is called");
}

auto state A
{        
    function Alpha()
    {
       `log("Alpha of A.");             
    }

    event BeginState (Name PreviousStateName)
    {
        `log("BeginState Event of A");       
    }     

    event EndState (Name NextStateName)
    {
       `log("EndState Event of A"); 
    }
}
ScriptLog: PostBeginPlay is called
ScriptLog: BeginState Event of A
Log: Bringing up level for play took: 0.031506
Log: ########### Finished loading level: 0.187532 seconds
Init: Game engine initialized
Log: Initializing Engine Completed
Log: >>>>>>>>>>>>>> Initial startup: 4.98s <<<<<<<<<<<<<<<




Test02

function PostBeginPlay()
{
    `log("PostBeginPlay is called");
}

function Alpha()
{
    `log("Global Alpha.");
}

auto state A
{      
    function Alpha()
    {
       `log("Alpha of A.");             
    }

    event BeginState (Name PreviousStateName)
    {
        `log("BeginState Event of A");       
    }     

    event EndState (Name NextStateName)
    {
       `log("EndState Event of A"); 
    }

Begin:
    `log("Begin: of A");
    Alpha();
    global.Alpha();
}
ScriptLog: PostBeginPlay is called
ScriptLog: BeginState Event of A
Log: Bringing up level for play took: 0.022666
Log: ########### Finished loading level: 0.168783 seconds
Init: Game engine initialized
Log: Initializing Engine Completed
Log: >>>>>>>>>>>>>> Initial startup: 4.66s <<<<<<<<<<<<<<<
ScriptLog: Begin: of A
ScriptLog: Alpha of A.
ScriptLog: Global Alpha.




Test3

function PostBeginPlay()
{
    `log("PostBeginPlay is called");
    SetTimer(1.5, false,'Alpha');
}


function Alpha()
{
    `log("Global Alpha.");
}


auto state A
{      
    function Alpha()
    {
       `log("Alpha of A.");             
    }

    function Beta()
    {           
       `log("Beta of A.");             
    }  
   
    event BeginState (Name PreviousStateName)
    {
        `log("BeginState Event of A");        
    }     

    event EndState (Name NextStateName)
    {
       `log("EndState Event of A"); 
    }

Begin:
    `log("Begin: of A");
    Sleep(0.5);
    `log("Sleep");
    goto('Begin');   
}
ScriptLog: PostBeginPlay is called
ScriptLog: BeginState Event of A
Log: Bringing up level for play took: 0.022176
Log: ########### Finished loading level: 0.169754 seconds
Init: Game engine initialized
Log: Initializing Engine Completed
Log: >>>>>>>>>>>>>> Initial startup: 4.57s <<<<<<<<<<<<<<<
ScriptLog: Begin: of A
ScriptLog: Sleep
ScriptLog: Begin: of A
ScriptLog: Sleep
ScriptLog: Begin: of A
ScriptLog: Sleep
ScriptLog: Begin: of A
ScriptLog: Alpha of A. // not glabal.Alpha
ScriptLog: Sleep
ScriptLog: Begin: of A
ScriptLog: Sleep





No comments:

Tag