C# Class Dominion.ListOfCards

Inheritance: CollectionCards
Show file Open project: NathanTeeuwen/Dominulator Class Usage Examples

Public Methods

Method Description
AddAllCardsFromInSomeOrder ( CollectionCards other ) : void
AddCardToTop ( Dominion.Card card ) : void
AddNCardsToTop ( Dominion.Card card, int count ) : void
BottomCard ( ) : Dominion.Card
Clear ( ) : void
DrawCardFromTop ( ) : Dominion.Card
FindAndRemoveCardOrderDestroyed ( Dominion.Card card ) : Dominion.Card
GetEnumerator ( ) : IEnumerator
ListOfCards ( CardGameSubset gameSubset ) : System
ListOfCards ( CardGameSubset gameSubset, BagOfCards parent ) : System
RemoveNCardsFromTop ( int count ) : void
Shuffle ( Random random ) : void
SwapCardsInPlace ( int position1, int position2 ) : void
TopCard ( ) : Dominion.Card

Protected Methods

Method Description
FindCardIndex ( Dominion.Card card ) : int
MoveCardToEnd ( int cardIndex ) : void
RemoveFromEnd ( ) : Dominion.Card
Swap ( int indexfirst, int indexSecond ) : void

Private Methods

Method Description
EraseKnownCountKnowledge ( ) : void
MoveBottomCardToTop ( ) : Dominion.Card
NumberBetweenInclusive ( Random random, int lowerBoundInclusive, int upperBoundInclusive ) : int

Method Details

AddAllCardsFromInSomeOrder() public method

public AddAllCardsFromInSomeOrder ( CollectionCards other ) : void
other CollectionCards
return void

AddCardToTop() public method

public AddCardToTop ( Dominion.Card card ) : void
card Dominion.Card
return void

AddNCardsToTop() public method

public AddNCardsToTop ( Dominion.Card card, int count ) : void
card Dominion.Card
count int
return void

BottomCard() public method

public BottomCard ( ) : Dominion.Card
return Dominion.Card

Clear() public method

public Clear ( ) : void
return void

DrawCardFromTop() public method

public DrawCardFromTop ( ) : Dominion.Card
return Dominion.Card

FindAndRemoveCardOrderDestroyed() public method

public FindAndRemoveCardOrderDestroyed ( Dominion.Card card ) : Dominion.Card
card Dominion.Card
return Dominion.Card

FindCardIndex() protected method

protected FindCardIndex ( Dominion.Card card ) : int
card Dominion.Card
return int

GetEnumerator() public method

public GetEnumerator ( ) : IEnumerator
return IEnumerator

ListOfCards() public method

public ListOfCards ( CardGameSubset gameSubset ) : System
gameSubset CardGameSubset
return System

ListOfCards() public method

public ListOfCards ( CardGameSubset gameSubset, BagOfCards parent ) : System
gameSubset CardGameSubset
parent BagOfCards
return System

MoveCardToEnd() protected method

protected MoveCardToEnd ( int cardIndex ) : void
cardIndex int
return void

RemoveFromEnd() protected method

protected RemoveFromEnd ( ) : Dominion.Card
return Dominion.Card

RemoveNCardsFromTop() public method

public RemoveNCardsFromTop ( int count ) : void
count int
return void

Shuffle() public method

public Shuffle ( Random random ) : void
random System.Random
return void

Swap() protected method

protected Swap ( int indexfirst, int indexSecond ) : void
indexfirst int
indexSecond int
return void

SwapCardsInPlace() public method

public SwapCardsInPlace ( int position1, int position2 ) : void
position1 int
position2 int
return void

TopCard() public method

public TopCard ( ) : Dominion.Card
return Dominion.Card