// A-10 public static CardCollect Get10(CardSuiteType t) { CardCollect cc = new CardCollect(); for (byte b = 1; b <= 10; ++b) { cc.Add(new Card((CardValueType)b, t)); } return cc; }
// A-10 public static CardCollect Get10(CardSuiteType t) { CardCollect cc = new CardCollect(); for (byte b = 1; b <= 10; ++b) { cc.Add(new Card((CardValueType)b, t)); } return(cc); }
// A-K no 2 public static CardCollect Get12(CardSuiteType t) { CardCollect cc = new CardCollect(); for (byte b = 1; b <= 13; ++b) { if (b == 2) continue; cc.Add(new Card((CardValueType)b, t)); } return cc; }
// A-K no 2 public static CardCollect Get12(CardSuiteType t) { CardCollect cc = new CardCollect(); for (byte b = 1; b <= 13; ++b) { if (b == 2) { continue; } cc.Add(new Card((CardValueType)b, t)); } return(cc); }
public Card(CardSuiteType suite, CardValueType value) { this.suite = suite; this.value = value; }
public void Read(BinaryReader reader) { suite = (CardSuiteType)reader.ReadByte(); value = (CardValueType)reader.ReadByte(); }
public Card(CardValueType v, CardSuiteType s) { Value = v; Suite = s; }