예제 #1
0
파일: Rank.cs 프로젝트: Jsalaz/HW2CardGame
 //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();
 }
예제 #2
0
파일: Rank.cs 프로젝트: Jsalaz/HW2CardGame
 /**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();
 }
예제 #3
0
 public card(suits s, cardRank v)
 {
     cardSuit = s;
     cardValue = v;
 }
예제 #4
0
 public card(cardRank rank, cardSuit suit, location loc)
 {
     this.rank     = rank;
     this.suit     = suit;
     this.location = loc;
 }
예제 #5
0
                // CONSTRUCTORS

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