private void OnMouseUpAsButton()
 {
     if (!Interactible || Game.IsBusy)
     {
         return;
     }
     GlobalCommandExecutor.Execute(() => _pile.FlipTopCard(), () => _pile.UndoFlipTopCard());
 }
Exemplo n.º 2
0
 public void OnClick()
 {
     if (!GlobalCommandExecutor.CanUndo())
     {
         return;
     }
     GlobalCommandExecutor.Undo();
 }
Exemplo n.º 3
0
 private void OnMouseUpAsButton()
 {
     if (Game.IsBusy)
     {
         return;
     }
     if (_deck.HasCards)
     {
         GlobalCommandExecutor.Execute(() => PlaceACardToTalon(), () => PlaceACardBackToDeck());
     }
     else
     {
         GlobalCommandExecutor.Execute(() => ResetDeck(), () => UndoResetDeck());
     }
 }
Exemplo n.º 4
0
 private void DropCard() => GlobalCommandExecutor.Execute(new SolitaireMove(_card, _origin, _destination));