Blackjack Program
Iteration 2
Core Exercise HIT3172
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
Enumerator
src
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
,
24
DIAMOND
,
25
HEART
,
26
SPADE
,
27
SUIT_MAX
28
29
};
30
36
enum
rank
{
37
ACE
= 1,
38
TWO
,
39
THREE
,
40
FOUR
,
41
FIVE
,
42
SIX
,
43
SEVEN
,
44
EIGHT
,
45
NINE
,
46
TEN
,
47
JACK
,
48
QUEEN
,
49
KING
,
50
RANK_MAX
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
:
66
suit
_suit
;
67
71
rank
_rank
;
72
76
bool
_faceup
;
77
78
};
79
80
#endif
/* CARD_H_ */
Generated on Mon Aug 20 2012 21:30:42 for Blackjack Program by
1.8.1.2