Diffstat (limited to 'noncore/games/solitaire/carddeck.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/games/solitaire/carddeck.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/games/solitaire/carddeck.h b/noncore/games/solitaire/carddeck.h index 9ad35a9..026834f 100644 --- a/noncore/games/solitaire/carddeck.h +++ b/noncore/games/solitaire/carddeck.h | |||
@@ -24,26 +24,28 @@ | |||
24 | class Card; | 24 | class Card; |
25 | 25 | ||
26 | 26 | ||
27 | class CardDeck | 27 | class CardDeck |
28 | { | 28 | { |
29 | public: | 29 | public: |
30 | CardDeck(int jokers = 0); | 30 | CardDeck(int jokers = 0, int numOfDecks = 1); |
31 | virtual ~CardDeck(); | 31 | virtual ~CardDeck(); |
32 | 32 | ||
33 | void createDeck(); | 33 | void createDeck(); |
34 | void shuffle(); | 34 | void shuffle(); |
35 | int getNumberOfCards(); | 35 | int getNumberOfCards(); |
36 | int getNumberOfDecks(); | ||
36 | int getNumberOfJokers(); | 37 | int getNumberOfJokers(); |
37 | 38 | ||
38 | virtual Card *newCard( eValue v, eSuit s, bool f ); | 39 | virtual Card *newCard( eValue v, eSuit s, bool f ); |
39 | virtual void deal() { } | 40 | virtual void deal() { } |
40 | 41 | ||
41 | Card **cards; | 42 | Card **cards; |
42 | private: | 43 | private: |
43 | int numberOfJokers; | 44 | int numberOfJokers; |
45 | int numberOfDecks; | ||
44 | bool deckCreated; | 46 | bool deckCreated; |
45 | }; | 47 | }; |
46 | 48 | ||
47 | 49 | ||
48 | #endif | 50 | #endif |
49 | 51 | ||