Ejemplo n.º 1
0
 //Third constructor assigns predifined values just incase a game needs to define values.
 public Rank(int eNumCode, int rankVal)
 {
     myRank  = ((cardRank)eNumCode);
     rValue  = rankVal;
     rName   = myRank.ToString();
     rSymbol = InitSymbol();
 }
Ejemplo n.º 2
0
 /**second constructor
  * values can be derived from the enum index, but for this project
  * the values were defined in CardCountHand and BlackJackHand
  * */
 public Rank(int eNumCode)
 {
     myRank = ((cardRank)eNumCode);
     rName  = myRank.ToString();
     //rValue = (int)myRank;
     rSymbol = InitSymbol();
 }
Ejemplo n.º 3
0
 public card(suits s, cardRank v)
 {
     cardSuit = s;
     cardValue = v;
 }
Ejemplo n.º 4
0
 public card(cardRank rank, cardSuit suit, location loc)
 {
     this.rank     = rank;
     this.suit     = suit;
     this.location = loc;
 }
Ejemplo n.º 5
0
                // CONSTRUCTORS

                public card(cardRank rank, cardSuit suit)
                {
                    this.rank = rank;
                    this.suit = suit;
                }