Example #1
0
    public void Apply(Card card)
    {
        bool    success = false;
        Cascade aph     = (Cascade)card.parentPlaceholder;

        if (FilterPlaceholders(ArcanaCardRank, card))
        {
            return;
        }
        switch (ArcanaCardRank)
        {
        case 0:
            success = aph.ReverseCards(card);
            aph.ReverseArrows();
            aph.behaviour = Behaviour.ReverseAll;
            break;

        case 1:
            success = aph.SortNumericalDescending(card);
            break;

        case 2:
            success = aph.SortByZodiac(card);
            break;

        case 3:
            success = aph.SortBySuit(card);
            break;

        case 4:
            success = aph.RevealOneUp();
            break;

        case 5:
            success = aph.MoveToBottom(card);
            break;

        case 6:
            success = aph.MoveRowToBottom(card);
            break;
        }
        if (success)
        {
            Done();
        }
    }