Exemplo n.º 1
0
 public Poker(ePOKER_TYPE type, int num)
 {
     _index = NumTypeToIndex(type, num);
     _type  = type;
     _num   = num;
 }
Exemplo n.º 2
0
 public static int NumTypeToIndex(ePOKER_TYPE type, int num)
 {
     return(((int)type - 1) * (int)ePOKER_COUNT.suit + num);
 }
Exemplo n.º 3
0
 public Poker(int index)
 {
     _index = index;
     _type  = IndexToType(_index);
     _num   = IndexToNum(index);
 }
Exemplo n.º 4
0
 public int AddOwnPoker(ePOKER_TYPE type, int num)
 {
     return(AddOwnPoker(new Poker(type, num)));
 }