Example #1
0
 // 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;
 }
Example #2
0
        // 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);
        }
Example #3
0
 // 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;
 }
Example #4
0
        // 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);
        }
Example #5
0
File: Card.cs Project: MrBek/Poker
 public Card(CardSuiteType suite, CardValueType value)
 {
     this.suite = suite;
     this.value = value;
 }
Example #6
0
File: Card.cs Project: MrBek/Poker
 public void Read(BinaryReader reader)
 {
     suite = (CardSuiteType)reader.ReadByte();
     value = (CardValueType)reader.ReadByte();
 }
Example #7
0
File: Card.cs Project: xxy1991/cozy
 public Card(CardValueType v, CardSuiteType s)
 {
     Value = v;
     Suite = s;
 }
Example #8
0
File: Card.cs Project: sgww/cozy
 public Card(CardValueType v, CardSuiteType s)
 {
     Value = v;
     Suite = s;
 }