Example #1
0
        public void OnEnterMoveState(IOcuppy occupier)
        {
            // CREO LA LISTA/DICCTIONARY DE LAS POSIBLES TILES A MOVERSE CON SU HIGHLIGHT CORRESPONDIENTE
            Dictionary <Tile, HIGHLIGHTUITYPE> tileHighlightTypesDictionary = CreateHighlightUIDictionary(occupier);
            MoveAbilitySelectionUIContainer    moveUIContainer = new MoveAbilitySelectionUIContainer(tileHighlightTypesDictionary);
            MoveState moveState = new MoveState(game, game.baseStateMachine.currentState, moveUIContainer, occupier);

            game.baseStateMachine.PopState(true);
            game.baseStateMachine.PushState(moveState);
        }
 public SelectCardTargetState(GameMachine game, IState previousState, MoveAbilitySelectionUIContainer moveUIContainer, IOcuppy mover) : base(game, previousState)
 {
     gmMachine            = game;
     this.moveUIContainer = moveUIContainer;
     this.mover           = mover;
 }