Exemple #1
0
 public Card(GameConst.Suit cardSuit, GameConst.CardNumber cardNumber, GameConst.CardWeight cardWeight)
 {
     this.cardSuit   = cardSuit;
     this.cardNumber = cardNumber;
     this.cardWeight = cardWeight;
 }
Exemple #2
0
 public static GameConst.CardWeight GetWeightByNumber(GameConst.CardNumber cardNumber)
 {
     GameConst.CardWeight weight = (GameConst.CardWeight)GameConst.CardWeightList[(int)cardNumber - 1];
     return(weight);
 }