Property | Type | Description | |
---|---|---|---|
Cards | List |
Property | Type | Description |
---|
Method | Description | |
---|---|---|
AddCard ( BaseCard card ) : void |
Adds a card to the current deck Adds to the end of the deck by default |
|
AddCards ( IEnumerable |
Adds a list of cards to the current deck Adds to the end of the deck by default |
|
Deck ( ) : System |
Initialize a new empty deck
|
|
Deck ( List |
Initialize a deck with a list of cards
|
|
DrawCard ( ) : BaseCard |
Draws a card from the player's deck
|
|
DrawCards ( int n = 1 ) : List |
Draws n cards
|
|
FromDeckFile ( string pathToFile ) : |
Creates a deck from a deck file A deck file follows the following format: [count], [card name] with each card on a separate line |
|
Shuffle ( int n = 5 ) : void |
Shuffle the deck
|
public AddCard ( BaseCard card ) : void | ||
card | BaseCard | The card to add |
return | void |
public AddCards ( IEnumerable |
||
cards | IEnumerable |
The list of cards to add |
return | void |
public Deck ( List |
||
cards | List |
The cards to fill the deck with |
return | System |
public DrawCards ( int n = 1 ) : List |
||
n | int | The number of cards to draw |
return | List |
public static FromDeckFile ( string pathToFile ) : |
||
pathToFile | string | Path to the deck file |
return |
public Shuffle ( int n = 5 ) : void | ||
n | int | The number of times to shuffle the deck |
return | void |