예제 #1
0
 private void UseSpellButton_Click(object sender, RoutedEventArgs e)
 {
     if (game.SetPossibleSpellTargets())
     {
         Cursor = CardAttackCursors.GetCursor(CardAttackCursorTypes.Staff);
     }
 }
예제 #2
0
        private void BasicAttackButton_Click(object sender, RoutedEventArgs e)
        {
            var activeCard = game.Player.ActiveCard;
            var opponent   = game.Opponent;

            Cursor = CardAttackCursors.GetCursor(activeCard.Type == CreatureTypes.Melee ? CardAttackCursorTypes.Sword : CardAttackCursorTypes.Arrow);

            opponent.RemoveSelectionFromCards();
            opponent.SetPossibleTargets(activeCard.GetPossibleTargets(opponent.CardDeck, game.Player.ActiveCardPosition));
            game.Player.DeselectSpellFriendlyTargets();
        }