Blackjack Program  Iteration 2
Core Exercise HIT3172
 All Classes Functions Variables Enumerations Enumerator
card.h
1 /*
2  * card.h
3  *
4  * Created on: 30/07/2012
5  * Author: Adam Malcontenti-Wilson
6  */
7 #include <string>
8 
9 #ifndef CARD_H_
10 #define CARD_H_
11 
17 class card {
18 public:
22  enum suit {
23  CLUB,
28 
29  };
30 
36  enum rank {
37  ACE = 1,
38  TWO,
40  FOUR,
41  FIVE,
42  SIX,
45  NINE,
46  TEN,
47  JACK,
49  KING,
51 
52  };
53 
54  card(rank r, suit s);
55  void turn_over();
56  std::string str();
57 
58  suit get_suit();
59  rank get_rank();
60  bool is_faceup();
61 
62 private:
67 
72 
76  bool _faceup;
77 
78 };
79 
80 #endif /* CARD_H_ */