Ejemplo n.º 1
0
        protected override void OnSelectionChanged(SquareViewModel oldSquare, SquareViewModel newSquare)
        {
            if (tacticsBoardService.IsComputerTurn())
            {
                return;
            }

            base.OnSelectionChanged(oldSquare, newSquare);
        }
Ejemplo n.º 2
0
 private void OnMoveExecuted(GenericMessage <MoveData> obj)
 {
     if (boardService.CurrentIsLastMove() && boardService.IsComputerTurn() && boardService.GetState() == TacticState.InProgress)
     {
         OnExecuteNextMoveAsync(null);
     }
 }