//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(); }
/**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(); }
public card(suits s, cardRank v) { cardSuit = s; cardValue = v; }
public card(cardRank rank, cardSuit suit, location loc) { this.rank = rank; this.suit = suit; this.location = loc; }
// CONSTRUCTORS public card(cardRank rank, cardSuit suit) { this.rank = rank; this.suit = suit; }