Created
February 25, 2011 11:06
-
-
Save neilmanuell/843658 to your computer and use it in GitHub Desktop.
Limits the access of the IFSMController to its properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.osflash.statemachine.core.IFSMController; | |
public class FSMProperties implements IFSMProperties | |
{ | |
private var _fsmController:IFSMController; | |
[Inject] | |
public function set fsmController( value:IFSMController ):void | |
{ | |
_fsmController = value; | |
} | |
public function get referringAction():String | |
{ | |
return _fsmController.referringAction; | |
} | |
public function get currentStateName():String | |
{ | |
return _fsmController.currentStateName; | |
} | |
public function get transitionPhase():String | |
{ | |
return _fsmController.transitionPhase; | |
} | |
public function get isTransitioning():Boolean | |
{ | |
return _fsmController.isTransitioning; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment