Esempio n. 1
0
 public Card(CardAmount amount)
 {
     Amount = amount;
     Type   = amount.ToType();
 }
Esempio n. 2
0
 public static CardType ToType(this CardAmount card)
 {
     return(card.Amount >= Constants.AmountCardMax ? CardType.King : CardType.Amount);
 }