C# Class Dominion.UniqueCardPicker

Exibir arquivo Open project: NathanTeeuwen/Dominulator Class Usage Examples

Public Methods

Method Description
ExcludeCards ( IEnumerable excludes ) : void
GetCard ( bool>.Func meetConstraint ) : Dominion.Card
IsExcluded ( Dominion card ) : bool
UniqueCardPicker ( IEnumerable allCards, Random random ) : System

Private Methods

Method Description
NumberBetweenInclusive ( Random random, int lowerBoundInclusive, int upperBoundInclusive ) : int

Method Details

ExcludeCards() public method

public ExcludeCards ( IEnumerable excludes ) : void
excludes IEnumerable
return void

GetCard() public method

public GetCard ( bool>.Func meetConstraint ) : Dominion.Card
meetConstraint bool>.Func
return Dominion.Card

IsExcluded() public method

public IsExcluded ( Dominion card ) : bool
card Dominion
return bool

UniqueCardPicker() public method

public UniqueCardPicker ( IEnumerable allCards, Random random ) : System
allCards IEnumerable
random System.Random
return System