Method | Description | |
---|---|---|
Deck ( ) : System.Collections.Generic | ||
GetCard ( Rank rank, Suit suit ) : Card |
Gets the first matching card in the deck matching the specified suit and rank.
|
|
GetCard ( int number, Suit suit ) : Card |
Gets the card in the deck matching the specified integer rank value and the specified suit.
|
|
Has ( Rank rank, Suit suit ) : bool |
Determines whether [has] [the specified rank].
|
|
Has ( int number, Suit suit ) : bool |
Determines whether [has] [the specified number].
|
|
RemoveCard ( Card card ) : void | ||
ToString ( ) : string |
public GetCard ( Rank rank, Suit suit ) : Card | ||
rank | Rank | The rank to match. |
suit | Suit | The suit to match. |
return | Card |
public GetCard ( int number, Suit suit ) : Card | ||
number | int | The number of the rank to match. |
suit | Suit | The suit to match. |
return | Card |
public Has ( Rank rank, Suit suit ) : bool | ||
rank | Rank | The rank. |
suit | Suit | The suit. |
return | bool |
public Has ( int number, Suit suit ) : bool | ||
number | int | The number. |
suit | Suit | The suit. |
return | bool |