public NoSelectionsState(PlayerActionsOnBoardStates states, BoardCreator boardCreator)
    {
        this.states       = states;
        this.boardCreator = boardCreator;

        this.boardActivities = new BoardActivities(boardCreator)
        {
            OnAllySelected = this.EnableOwnUnitSelectedState
        };

        this.handActivities = new HandActivities(states)
        {
            OnCardSelectedToPlay = this.EnableSelectingTileForCardPlayingState
        };
    }
    void Start()
    {
        clickOutOfBoardEmmiter = new ClickOutOfBoardEmmiter();

        this.actionEmmiter = new ActionEmmiter()
        {
            boardCreator = this.boardCreator
        };

        this.states = new PlayerActionsOnBoardStates();

        this.states.noSelectionsState = new NoSelectionsState(this.states, this.boardCreator);

        this.states.ownUnitSelectedState = new OwnUnitSelectedState(this.states, this.boardCreator)
        {
            actionEmmiter = this.actionEmmiter,
            OnEnabled     = this.OnStateEnabled
        };

        this.states.selectingPushTargetState = new SelectingPushTargetState(this.states, this.boardCreator)
        {
            actionEmmiter = this.actionEmmiter,
            OnEnabled     = this.OnStateEnabled
        };

        this.states.selectingRicochetTargetState = new SelectingRicochetTargetState(this.states, this.boardCreator)
        {
            actionEmmiter = this.actionEmmiter,
            OnEnabled     = this.OnStateEnabled
        };

        this.states.selectingHealingTargetState = new SelectingHealingTargetState(this.states, this.boardCreator)
        {
            actionEmmiter = this.actionEmmiter,
            OnEnabled     = this.OnStateEnabled
        };

        this.states.selectingTileForCardPlayingState = new SelectingTileForCardPlayingState(this.states, this.boardCreator)
        {
            actionEmmiter = this.actionEmmiter
        };

        this.states.noSelectionsState.Enable();
    }
 public SelectingTileForCardPlayingState(PlayerActionsOnBoardStates states, BoardCreator boardCreator)
 {
     this.states       = states;
     this.boardCreator = boardCreator;
 }
 public SelectingHealingTargetState(PlayerActionsOnBoardStates states, BoardCreator boardCreator) : base(states, boardCreator)
 {
 }
 public OwnUnitSelectedState(PlayerActionsOnBoardStates states, BoardCreator boardCreator) : base(states, boardCreator)
 {
 }
Exemple #6
0
 public HandActivities(PlayerActionsOnBoardStates states)
 {
     this.states = states;
 }