-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDeck.h
executable file
·33 lines (26 loc) · 967 Bytes
/
Deck.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef BLACK_JACK_DECK_H
#define BLACK_JACK_DECK_H
#include "Card.h"
//-----------------------------------------------------------------------------
// Purpose: Represents a full deck of cards, nothing else, only the full deck
// of cards with one of each card.
//-----------------------------------------------------------------------------
class Deck {
public:
Deck();
virtual ~Deck();
//-----------------------------------------------------------------------------
// Purpose: Shuffles the deck
//-----------------------------------------------------------------------------
void Shuffle();
//-----------------------------------------------------------------------------
// Purpose: Draw a random card from the deck
//
// returns the drawn card
//-----------------------------------------------------------------------------
Card *Draw();
protected:
Card::Cards _Cards;
private:
};
#endif // BLACK_JACK_DECK_H