Blackjack Program  Iteration 2
Core Exercise HIT3172
 All Classes Functions Variables Enumerations Enumerator
blackjackhand.h
1 /*
2  * blackjackhand.h
3  *
4  * Created on: 21/08/2012
5  * Author: Adam Malcontenti-Wilson
6  */
7 
8 #ifndef BLACKJACKHAND_H_
9 #define BLACKJACKHAND_H_
10 
11 #define MAX_CARDS_IN_HAND 5
12 
13 #include <string>
14 #include "card.h"
15 
17 private:
18  card* _cards[MAX_CARDS_IN_HAND];
19  int _score;
20  int _count;
21 
22  bool needs_evaluate();
23  void evaluate();
24 
25 public:
27 
28  void add_card(card*);
29  void return_cards();
30  card* card_at(int);
31  void reveal();
32  std::string str();
33 
34  int get_score();
35  int get_count();
36  bool is_full();
37  bool is_blackjack();
38  bool is_busted();
39 };
40 
41 #endif /* BLACKJACKHAND_H_ */