Created
February 25, 2011 11:10
-
-
Save neilmanuell/843661 to your computer and use it in GitHub Desktop.
Base class for sending multiple synchronous actions
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
public class BaseMacroAction implements IActionable | |
{ | |
private var _fsmController:IFSMController; | |
[Inject] | |
public function set fsmController( value:IFSMController ):void | |
{ | |
_fsmController = value; | |
} | |
public function action( payload:Object = null ):void | |
{ | |
initiateMacroAction( payload ) | |
} | |
protected function initiateMacroAction( payload:Object ):void | |
{ | |
} | |
protected final function sendAction( name:String, payload:Object = null ):void | |
{ | |
_fsmController.action( name, payload ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment