Method | Description | |
---|---|---|
Deck ( |
Initializes a new instance of the Deck class.
|
|
Deck ( int numberOfDecks, int uptoNumber, |
Initializes a new instance of the Deck class.
|
|
Draw ( |
Draws/Moves the specified amount of cards to the specified deck.
|
|
EnableAllCards ( bool enable ) : void |
Method to set the value of Enabled to the provided value on all of the cards in the deck.
|
|
FlipAllCards ( ) : void |
Method to toggle the visibility of all cards in the deck.
|
|
GetCard ( CardRank rank, CardSuit suit ) : Card |
Gets the first matching card in the deck matching the specified suit and rank.
|
|
GetCard ( int number, CardSuit suit ) : Card |
Gets the card in the deck matching the specified integer rank value and the specified suit.
|
|
Has ( CardRank rank, CardSuit suit ) : bool |
Determines whether [has] [the specified rank].
|
|
Has ( int number, CardSuit suit ) : bool |
Determines whether [has] [the specified number].
|
|
MakeAllCardsDragable ( bool isDragable ) : void |
Method to set the value of the IsDragable on all of the cards in the deck.
|
|
Shuffle ( ) : void |
Shuffles the the deck's cards list one time.
|
|
Shuffle ( int times ) : void |
Shuffles the deck's cards list specified number of times.
|
|
Sort ( ) : void |
Sorts the cards in the deck using the Game's suit comparer.
|
|
ToString ( ) : string |
Returns a System.String that represents this instance.
|
public Deck ( int numberOfDecks, int uptoNumber, |
||
numberOfDecks | int | The number of decks. |
uptoNumber | int | The upto number. |
game | The game. | |
return | System |
public Draw ( |
||
toDeck | To deck. | |
count | int | The count. |
return | void |
public EnableAllCards ( bool enable ) : void | ||
enable | bool | if set to |
return | void |
public GetCard ( CardRank rank, CardSuit suit ) : Card | ||
rank | CardRank | The rank to match. |
suit | CardSuit | The suit to match. |
return | Card |
public GetCard ( int number, CardSuit suit ) : Card | ||
number | int | The number of the rank to match. |
suit | CardSuit | The suit to match. |
return | Card |
public Has ( CardRank rank, CardSuit suit ) : bool | ||
rank | CardRank | The rank. |
suit | CardSuit | The suit. |
return | bool |
public Has ( int number, CardSuit suit ) : bool | ||
number | int | The number. |
suit | CardSuit | The suit. |
return | bool |
public MakeAllCardsDragable ( bool isDragable ) : void | ||
isDragable | bool | if set to |
return | void |
public Shuffle ( int times ) : void | ||
times | int | The number of times. |
return | void |