C# Class Dominion.Strategy.DefaultPlayRules.Cards.Count

Inheritance: DerivedPlayerAction
Datei anzeigen Open project: NathanTeeuwen/Dominulator

Public Methods

Method Description
ChooseBetween ( GameState gameState, IsValidChoice acceptableChoice ) : PlayerActionChoice
Count ( Dominion.DefaultPlayerAction playerAction ) : System
GetCardFromHandToTopDeck ( GameState gameState, CardPredicate acceptableCard, bool isOptional ) : Dominion.Card
WillPlayCountCardForTrash ( Dominion.DefaultPlayerAction playerAction, GameState gameState ) : bool

Private Methods

Method Description
DoesHandHaveCombinationToTrash ( Dominion.DefaultPlayerAction playerAction, GameState gameState ) : bool
PreferMoneyOverDuchy ( Dominion.DefaultPlayerAction playerAction, GameState gameState ) : bool
ShouldGainCopper ( GameState gameState ) : bool

Method Details

ChooseBetween() public method

public ChooseBetween ( GameState gameState, IsValidChoice acceptableChoice ) : PlayerActionChoice
gameState Dominion.GameState
acceptableChoice IsValidChoice
return PlayerActionChoice

Count() public method

public Count ( Dominion.DefaultPlayerAction playerAction ) : System
playerAction Dominion.DefaultPlayerAction
return System

GetCardFromHandToTopDeck() public method

public GetCardFromHandToTopDeck ( GameState gameState, CardPredicate acceptableCard, bool isOptional ) : Dominion.Card
gameState Dominion.GameState
acceptableCard CardPredicate
isOptional bool
return Dominion.Card

WillPlayCountCardForTrash() public static method

public static WillPlayCountCardForTrash ( Dominion.DefaultPlayerAction playerAction, GameState gameState ) : bool
playerAction Dominion.DefaultPlayerAction
gameState Dominion.GameState
return bool