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; } }
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); }