C# Class Dominion.Strategy.Strategy

Datei anzeigen Open project: NathanTeeuwen/Dominulator

Public Methods

Method Description
CardBeingPlayedIs ( Dominion.Card card, GameState gameState ) : bool
CostOfCard ( Dominion.Card card, GameState gameState ) : int
CountAllOwned ( Dominion.Card card, RelativeAmount relativeAmount, int amount ) : GameStatePredicate
CountAllOwned ( Dominion.Card cardType, GameState gameState ) : int
CountAllOwned ( ICardPicker matchingCards, GameState gameState ) : int
CountInDeck ( Dominion.Card card, GameState gameState ) : int
CountInDeckAndDiscard ( Dominion.Card card, GameState gameState ) : int
CountInHand ( Dominion.Card cardType, GameState gameState ) : int
CountInHandFrom ( ICardPicker matchingCards, GameState gameState ) : int
CountMightDraw ( Dominion.Card card, GameState gameState, int maxCount ) : int
CountOfPile ( Dominion.Card cardType, GameState gameState ) : int
HasAtLeast2ToTrashInHand ( GameState gameState, Dominion.DefaultPlayerAction playerAction ) : bool
HasCardFromInHand ( ICardPicker matchingCards, GameState gameState ) : bool
HasCardIn ( Dominion.Card card, ICardPicker matchingCards, GameState gameState ) : bool
HasCardInHand ( Dominion.Card card ) : GameStatePredicate
HasCardInHand ( Dominion.Card card, GameState gameState ) : bool
HasCardToDiscardInHand ( GameState gameState, Dominion.DefaultPlayerAction playerAction ) : bool
HasCardToTrashInHand ( GameState gameState, Dominion.DefaultPlayerAction playerAction ) : bool
HasExactlyOneActionInHand ( GameState gameState ) : bool
PlayersPointLead ( GameState gameState ) : int
WhichCardFromInHand ( ICardPicker matchingCards, GameState gameState ) : Dominion.Card

Method Details

CardBeingPlayedIs() public static method

public static CardBeingPlayedIs ( Dominion.Card card, GameState gameState ) : bool
card Dominion.Card
gameState Dominion.GameState
return bool

CostOfCard() public static method

public static CostOfCard ( Dominion.Card card, GameState gameState ) : int
card Dominion.Card
gameState Dominion.GameState
return int

CountAllOwned() public static method

public static CountAllOwned ( Dominion.Card card, RelativeAmount relativeAmount, int amount ) : GameStatePredicate
card Dominion.Card
relativeAmount RelativeAmount
amount int
return GameStatePredicate

CountAllOwned() public static method

public static CountAllOwned ( Dominion.Card cardType, GameState gameState ) : int
cardType Dominion.Card
gameState Dominion.GameState
return int

CountAllOwned() public static method

public static CountAllOwned ( ICardPicker matchingCards, GameState gameState ) : int
matchingCards ICardPicker
gameState Dominion.GameState
return int

CountInDeck() public static method

public static CountInDeck ( Dominion.Card card, GameState gameState ) : int
card Dominion.Card
gameState Dominion.GameState
return int

CountInDeckAndDiscard() public static method

public static CountInDeckAndDiscard ( Dominion.Card card, GameState gameState ) : int
card Dominion.Card
gameState Dominion.GameState
return int

CountInHand() public static method

public static CountInHand ( Dominion.Card cardType, GameState gameState ) : int
cardType Dominion.Card
gameState Dominion.GameState
return int

CountInHandFrom() public static method

public static CountInHandFrom ( ICardPicker matchingCards, GameState gameState ) : int
matchingCards ICardPicker
gameState Dominion.GameState
return int

CountMightDraw() public static method

public static CountMightDraw ( Dominion.Card card, GameState gameState, int maxCount ) : int
card Dominion.Card
gameState Dominion.GameState
maxCount int
return int

CountOfPile() public static method

public static CountOfPile ( Dominion.Card cardType, GameState gameState ) : int
cardType Dominion.Card
gameState Dominion.GameState
return int

HasAtLeast2ToTrashInHand() public static method

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

HasCardFromInHand() public static method

public static HasCardFromInHand ( ICardPicker matchingCards, GameState gameState ) : bool
matchingCards ICardPicker
gameState Dominion.GameState
return bool

HasCardIn() public static method

public static HasCardIn ( Dominion.Card card, ICardPicker matchingCards, GameState gameState ) : bool
card Dominion.Card
matchingCards ICardPicker
gameState Dominion.GameState
return bool

HasCardInHand() public static method

public static HasCardInHand ( Dominion.Card card ) : GameStatePredicate
card Dominion.Card
return GameStatePredicate

HasCardInHand() public static method

public static HasCardInHand ( Dominion.Card card, GameState gameState ) : bool
card Dominion.Card
gameState Dominion.GameState
return bool

HasCardToDiscardInHand() public static method

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

HasCardToTrashInHand() public static method

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

HasExactlyOneActionInHand() public static method

public static HasExactlyOneActionInHand ( GameState gameState ) : bool
gameState Dominion.GameState
return bool

PlayersPointLead() public static method

public static PlayersPointLead ( GameState gameState ) : int
gameState Dominion.GameState
return int

WhichCardFromInHand() public static method

public static WhichCardFromInHand ( ICardPicker matchingCards, GameState gameState ) : Dominion.Card
matchingCards ICardPicker
gameState Dominion.GameState
return Dominion.Card