Blackjack Program
Iteration 2
Core Exercise HIT3172
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
Enumerator
src
cardhand.h
1
/*
2
* cardhand.h
3
*
4
* Created on: 28/08/2012
5
* Author: Adam Malcontenti-Wilson
6
*/
7
8
#ifndef CARDHAND_H_
9
#define CARDHAND_H_
10
11
#include <string>
12
#include <vector>
13
#include "card.h"
14
15
class
card_hand
{
16
protected
:
17
std::vector<card*> _cards;
18
int
_score;
19
20
virtual
bool
needs_evaluate
();
21
virtual
void
evaluate
();
22
23
public
:
24
card_hand
();
25
virtual
~
card_hand
();
26
27
void
add_card
(
card
*
card
);
28
void
remove_card
(
int
idx);
29
card*
card_at
(
int
idx);
30
31
virtual
std::string
str
();
32
33
void
return_cards
();
34
void
reveal
();
35
void
conceal
();
36
37
int
get_score
();
38
int
get_count
();
39
bool
is_all_faceup();
40
};
41
42
#endif
/* CARDHAND_H_ */
Generated on Mon Sep 10 2012 10:35:32 for Blackjack Program by
1.8.1.2