示例#1
0
        internal void TakeCard(BaseCard card)
        {
            switch (card.CardType)
            {
            case CardType.Mutiny:
                MutinyHand.Add((MutinyCard)card);
                break;

            case CardType.Quorum:
                QuorumHand.Add((QuorumCard)card);
                break;

            case CardType.Skill:
                Cards.Add((SkillCard)card);
                break;

            case CardType.SuperCrisis:
                SuperCrisisCards.Add((SuperCrisisCard)card);
                break;

            case CardType.Loyalty:
                LoyaltyCards.Add((LoyaltyCard)card);
                break;
            }
        }
示例#2
0
        internal bool Discard(BaseCard card)
        {
            switch (card.CardType)
            {
            case CardType.Mutiny:
                return(MutinyHand.Remove((MutinyCard)card));

            case CardType.Quorum:
                return(QuorumHand.Remove((QuorumCard)card));

            case CardType.Skill:
                return(Cards.Remove((SkillCard)card));

            case CardType.SuperCrisis:
                return(SuperCrisisCards.Remove((SuperCrisisCard)card));

            case CardType.Loyalty:
                LoyaltyCards.Remove((LoyaltyCard)card);
                break;
            }
            return(false);
        }