// Method for Transition OnStage__forgetLine__Dried public void OnStage__forgetLine(FSM_Event evt) { Debug.WriteLine("ACTOR.OnStage__forgetLine() Executing in response to event " + evt.getEventName()); }
// GuardMethod for transition OnStage__endOfScene__InWings public bool OnStage__endOfSceneGuard(FSM_Event evt) { Debug.WriteLine("ACTOR.OnStage__endOfSceneGuard() allowing event " + evt.getEventName()); return(true); }
// GuardMethod for transition InWings__endOfPLay__Bowing public bool InWings__endOfPLayGuard(FSM_Event evt) { Debug.WriteLine("ACTOR.InWings__endOfPLayGuard() allowing event " + evt.getEventName()); return(true); }
// Implementation of State OnStage // Method for Entry public void OnStage__onEntry(FSM_Event evt) { Debug.WriteLine("ACTOR.OnStage__onEntry() Executing in response to event " + evt.getEventName()); // Find the CDPlayer:player1. If its not playing send 'play' FSM playerFSM = FSM.findByFSMName("CDPLAYER:cdplayer1"); if (playerFSM.getCurrentStateName() != CDPLAYER.States.Playing) { FSM.postEvent(this, CDPLAYER.Events.startPlaying, playerFSM); } }
// Method for Transition InWings__endOfPLay__Bowing public void InWings__endOfPLay(FSM_Event evt) { Debug.WriteLine("ACTOR.InWings__endOfPLay() Executing in response to event " + evt.getEventName()); }