public AbilitySelection(GameState gameState, IState previousState, ActionInformation actionInformation) : base(gameState) { _previousState = previousState; _actionInformation = actionInformation; InputProcessor = new AbilitySelectionProcessor(gameState, this); }
public ActionAnimationPlaying(GameState gameState, ActionInformation actionInformation, Tile tile) : base(gameState) { _actionInformation = actionInformation; _stateName = "ActorAnimationPlaying" + _num++; _script = _actionInformation.Script(tile); InputProcessor = new NoInputProcessor(); }
public void SwitchToTargetSelection(ActionInformation actionInformation) { NextState = new StateTransition(() => new AbilitySelection(GameState, this, actionInformation)); }
private void AIDecisionComplete(ActionInformation actionInformation, Tile targetTile) { Func<IState> state = () => new ActionAnimationPlaying(GameState, actionInformation, targetTile); NextState = new StateTransition(state); }