프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Cards | List |
프로퍼티 | 타입 | 설명 |
---|
메소드 | 설명 | |
---|---|---|
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 AddCards ( IEnumerable |
||
cards | IEnumerable |
The list of cards to add |
리턴 | void |
public Deck ( List |
||
cards | List |
The cards to fill the deck with |
리턴 | System |
public static FromDeckFile ( string pathToFile ) : |
||
pathToFile | string | Path to the deck file |
리턴 |
public Shuffle ( int n = 5 ) : void | ||
n | int | The number of times to shuffle the deck |
리턴 | void |