private void NextActionMovePiece(PieceEV pieceEV, TileEV tileEV)
        {
            var movePieceInfo = new MovePieceStepState
            {
                PieceToMove     = pieceEV,
                DestinationTile = tileEV
            };

            boardPressSequence.Next(this, ref movePieceInfo, (int)BoardPress.MOVE_PIECE);
        }
        public void Step(ref CapturePieceStepState token, int condition)
        {
            var movePieceInfo = new MovePieceStepState
            {
                PieceToMove     = token.PieceToMove,
                PieceToCapture  = token.PieceToCapture,
                DestinationTile = token.DestinationTile
            };

            gotoMovePiece.Next(this, ref movePieceInfo);
        }
Exemplo n.º 3
0
        private void NextActionStack()
        {
            ModalEV modal           = modalService.FindModalEV(entitiesDB);
            TileEV  destinationTile = FindDestinationTile(modal);
            PieceEV pieceToMove     = FindPieceToMove(destinationTile);

            var movePieceStepState = new MovePieceStepState
            {
                DestinationTile = destinationTile,
                PieceToMove     = pieceToMove
            };

            captureStackModalAnswerSequence.Next(this, ref movePieceStepState, (int)MoveState.MOVE_PIECE);
        }