C# Class Dominion.PlayerActionWithSelf

Inheritance: IPlayerAction
ファイルを表示 Open project: NathanTeeuwen/Dominulator Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
BanCardForCurrentPlayerPurchase ( GameState gameState ) : Dominion.Card
BanCardToDrawnIntoHandFromRevealedCards ( GameState gameState ) : Dominion.Card
ChooseBetween ( GameState gameState, IsValidChoice acceptableChoice ) : PlayerActionChoice
ChooseBetweenTrashAndTopDeck ( GameState gameState, Dominion.Card card ) : DeckPlacement
ChooseBetweenTrashTopDeckDiscard ( GameState gameState, Dominion.Card card ) : DeckPlacement
ChooseCardToPlayFirst ( GameState gameState, Dominion.Card card1, Dominion.Card card2 ) : Dominion.Card
ChooseLocationForStashAfterShuffle ( GameState gameState, int locations ) : void
GetCardFromDiscardToTopDeck ( GameState gameState, bool isOptional ) : Dominion.Card
GetCardFromHandOrDiscardToTrash ( GameState gameState, CardPredicate acceptableCard, bool isOptional, DeckPlacement &deckPlacement ) : Dominion.Card
GetCardFromHandToDeferToNextTurn ( GameState gameState ) : Dominion.Card
GetCardFromHandToDiscard ( GameState gameState, CardPredicate acceptableCard, bool isOptional ) : Dominion.Card
GetCardFromHandToIsland ( GameState gameState ) : Dominion.Card
GetCardFromHandToPassLeft ( GameState gameState ) : Dominion.Card
GetCardFromHandToPlay ( GameState gameState, CardPredicate acceptableCard, bool isOptional ) : Dominion.Card
GetCardFromHandToReveal ( GameState gameState, CardPredicate acceptableCard ) : Dominion.Card
GetCardFromHandToTopDeck ( GameState gameState, CardPredicate acceptableCard, bool isOptional ) : Dominion.Card
GetCardFromHandToTrash ( GameState gameState, CardPredicate acceptableCard, bool isOptional, CollectionCards cardsTrashedSoFar ) : Dominion.Card
GetCardFromOtherPlayersHandToDiscard ( GameState gameState, PlayerState otherPlayer ) : Dominion.Card
GetCardFromOtherPlayersRevealedCardsToTrash ( GameState gameState, PlayerState otherPlayer, CardPredicate acceptableCard ) : Dominion.Card
GetCardFromPlayToTopDeckDuringCleanup ( GameState gameState, CardPredicate acceptableCard, bool isOptional ) : Dominion.Card
GetCardFromRevealedCardsToDiscard ( GameState gameState ) : Dominion.Card
GetCardFromRevealedCardsToPutInHand ( GameState gameState, CardPredicate acceptableCard ) : Dominion.Card
GetCardFromRevealedCardsToPutOnDeck ( GameState gameState ) : Dominion.Card
GetCardFromRevealedCardsToTopDeck ( GameState gameState, bool isOptional ) : Dominion.Card
GetCardFromRevealedCardsToTrash ( GameState gameState, CardPredicate acceptableCard ) : Dominion.Card
GetCardFromSupplyToBuy ( GameState gameState, CardPredicate acceptableCard ) : Dominion.Card
GetCardFromSupplyToEmbargo ( GameState gameState ) : Dominion.Card
GetCardFromSupplyToGain ( GameState gameState, CardPredicate acceptableCard, bool isOptional ) : Dominion.Card
GetCardFromSupplyToPlay ( GameState gameState, CardPredicate acceptableCard ) : Dominion.Card
GetCardFromTrashToGain ( GameState gameState, CardPredicate acceptableCard, bool isOptional ) : Dominion.Card
GetCoinAmountToOverpayForCard ( GameState gameState, Dominion.Card card ) : int
GetCoinAmountToSpendInBuyPhase ( GameState gameState ) : int
GetCoinAmountToUseInButcher ( GameState gameState ) : int
GetCountToReturnToSupply ( Dominion.Card card, GameState gameState ) : int
GetNumberOfCoppersToPutInHandForCountingHouse ( GameState gameState, int maxNumber ) : int
GetTreasureFromHandToPlay ( GameState gameState, CardPredicate acceptableCard, bool isOptional ) : Dominion.Card
GuessCardTopOfDeck ( GameState gameState ) : Dominion.Card
NameACard ( GameState gameState ) : Dominion.Card
PlayerActionWithSelf ( IPlayerAction playerAction, PlayerState self ) : System
ShouldGainCard ( GameState gameState, Dominion.Card card ) : bool
ShouldPlayerDiscardCardFromDeck ( GameState gameState, PlayerState player, Dominion.Card card ) : bool
ShouldPlayerDiscardCardFromHand ( GameState gameState, Dominion.Card card ) : bool
ShouldPutCardInHand ( GameState gameState, Dominion.Card card ) : bool
ShouldPutCardOnTopOfDeck ( Dominion.Card card, GameState gameState ) : bool
ShouldPutDeckInDiscard ( GameState gameState ) : bool
ShouldRevealCardFromHand ( GameState gameState, Dominion.Card card ) : bool
ShouldRevealCardFromHandForCard ( GameState gameState, Dominion.Card card, Dominion.Card cardFor ) : bool
ShouldTrashCard ( GameState gameState, Dominion.Card card ) : bool
WantToResign ( GameState gameState ) : bool

Method Details

BanCardForCurrentPlayerPurchase() public method

public BanCardForCurrentPlayerPurchase ( GameState gameState ) : Dominion.Card
gameState GameState
return Dominion.Card

BanCardToDrawnIntoHandFromRevealedCards() public method

public BanCardToDrawnIntoHandFromRevealedCards ( GameState gameState ) : Dominion.Card
gameState GameState
return Dominion.Card

ChooseBetween() public method

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

ChooseBetweenTrashAndTopDeck() public method

public ChooseBetweenTrashAndTopDeck ( GameState gameState, Dominion.Card card ) : DeckPlacement
gameState GameState
card Dominion.Card
return DeckPlacement

ChooseBetweenTrashTopDeckDiscard() public method

public ChooseBetweenTrashTopDeckDiscard ( GameState gameState, Dominion.Card card ) : DeckPlacement
gameState GameState
card Dominion.Card
return DeckPlacement

ChooseCardToPlayFirst() public method

public ChooseCardToPlayFirst ( GameState gameState, Dominion.Card card1, Dominion.Card card2 ) : Dominion.Card
gameState GameState
card1 Dominion.Card
card2 Dominion.Card
return Dominion.Card

ChooseLocationForStashAfterShuffle() public method

public ChooseLocationForStashAfterShuffle ( GameState gameState, int locations ) : void
gameState GameState
locations int
return void

GetCardFromDiscardToTopDeck() public method

public GetCardFromDiscardToTopDeck ( GameState gameState, bool isOptional ) : Dominion.Card
gameState GameState
isOptional bool
return Dominion.Card

GetCardFromHandOrDiscardToTrash() public method

public GetCardFromHandOrDiscardToTrash ( GameState gameState, CardPredicate acceptableCard, bool isOptional, DeckPlacement &deckPlacement ) : Dominion.Card
gameState GameState
acceptableCard CardPredicate
isOptional bool
deckPlacement DeckPlacement
return Dominion.Card

GetCardFromHandToDeferToNextTurn() public method

public GetCardFromHandToDeferToNextTurn ( GameState gameState ) : Dominion.Card
gameState GameState
return Dominion.Card

GetCardFromHandToDiscard() public method

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

GetCardFromHandToIsland() public method

public GetCardFromHandToIsland ( GameState gameState ) : Dominion.Card
gameState GameState
return Dominion.Card

GetCardFromHandToPassLeft() public method

public GetCardFromHandToPassLeft ( GameState gameState ) : Dominion.Card
gameState GameState
return Dominion.Card

GetCardFromHandToPlay() public method

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

GetCardFromHandToReveal() public method

public GetCardFromHandToReveal ( GameState gameState, CardPredicate acceptableCard ) : Dominion.Card
gameState GameState
acceptableCard CardPredicate
return Dominion.Card

GetCardFromHandToTopDeck() public method

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

GetCardFromHandToTrash() public method

public GetCardFromHandToTrash ( GameState gameState, CardPredicate acceptableCard, bool isOptional, CollectionCards cardsTrashedSoFar ) : Dominion.Card
gameState GameState
acceptableCard CardPredicate
isOptional bool
cardsTrashedSoFar CollectionCards
return Dominion.Card

GetCardFromOtherPlayersHandToDiscard() public method

public GetCardFromOtherPlayersHandToDiscard ( GameState gameState, PlayerState otherPlayer ) : Dominion.Card
gameState GameState
otherPlayer PlayerState
return Dominion.Card

GetCardFromOtherPlayersRevealedCardsToTrash() public method

public GetCardFromOtherPlayersRevealedCardsToTrash ( GameState gameState, PlayerState otherPlayer, CardPredicate acceptableCard ) : Dominion.Card
gameState GameState
otherPlayer PlayerState
acceptableCard CardPredicate
return Dominion.Card

GetCardFromPlayToTopDeckDuringCleanup() public method

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

GetCardFromRevealedCardsToDiscard() public method

public GetCardFromRevealedCardsToDiscard ( GameState gameState ) : Dominion.Card
gameState GameState
return Dominion.Card

GetCardFromRevealedCardsToPutInHand() public method

public GetCardFromRevealedCardsToPutInHand ( GameState gameState, CardPredicate acceptableCard ) : Dominion.Card
gameState GameState
acceptableCard CardPredicate
return Dominion.Card

GetCardFromRevealedCardsToPutOnDeck() public method

public GetCardFromRevealedCardsToPutOnDeck ( GameState gameState ) : Dominion.Card
gameState GameState
return Dominion.Card

GetCardFromRevealedCardsToTopDeck() public method

public GetCardFromRevealedCardsToTopDeck ( GameState gameState, bool isOptional ) : Dominion.Card
gameState GameState
isOptional bool
return Dominion.Card

GetCardFromRevealedCardsToTrash() public method

public GetCardFromRevealedCardsToTrash ( GameState gameState, CardPredicate acceptableCard ) : Dominion.Card
gameState GameState
acceptableCard CardPredicate
return Dominion.Card

GetCardFromSupplyToBuy() public method

public GetCardFromSupplyToBuy ( GameState gameState, CardPredicate acceptableCard ) : Dominion.Card
gameState GameState
acceptableCard CardPredicate
return Dominion.Card

GetCardFromSupplyToEmbargo() public method

public GetCardFromSupplyToEmbargo ( GameState gameState ) : Dominion.Card
gameState GameState
return Dominion.Card

GetCardFromSupplyToGain() public method

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

GetCardFromSupplyToPlay() public method

public GetCardFromSupplyToPlay ( GameState gameState, CardPredicate acceptableCard ) : Dominion.Card
gameState GameState
acceptableCard CardPredicate
return Dominion.Card

GetCardFromTrashToGain() public method

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

GetCoinAmountToOverpayForCard() public method

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

GetCoinAmountToSpendInBuyPhase() public method

public GetCoinAmountToSpendInBuyPhase ( GameState gameState ) : int
gameState GameState
return int

GetCoinAmountToUseInButcher() public method

public GetCoinAmountToUseInButcher ( GameState gameState ) : int
gameState GameState
return int

GetCountToReturnToSupply() public method

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

GetNumberOfCoppersToPutInHandForCountingHouse() public method

public GetNumberOfCoppersToPutInHandForCountingHouse ( GameState gameState, int maxNumber ) : int
gameState GameState
maxNumber int
return int

GetTreasureFromHandToPlay() public method

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

GuessCardTopOfDeck() public method

public GuessCardTopOfDeck ( GameState gameState ) : Dominion.Card
gameState GameState
return Dominion.Card

NameACard() public method

public NameACard ( GameState gameState ) : Dominion.Card
gameState GameState
return Dominion.Card

PlayerActionWithSelf() public method

public PlayerActionWithSelf ( IPlayerAction playerAction, PlayerState self ) : System
playerAction IPlayerAction
self PlayerState
return System

ShouldGainCard() public method

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

ShouldPlayerDiscardCardFromDeck() public method

public ShouldPlayerDiscardCardFromDeck ( GameState gameState, PlayerState player, Dominion.Card card ) : bool
gameState GameState
player PlayerState
card Dominion.Card
return bool

ShouldPlayerDiscardCardFromHand() public method

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

ShouldPutCardInHand() public method

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

ShouldPutCardOnTopOfDeck() public method

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

ShouldPutDeckInDiscard() public method

public ShouldPutDeckInDiscard ( GameState gameState ) : bool
gameState GameState
return bool

ShouldRevealCardFromHand() public method

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

ShouldRevealCardFromHandForCard() public method

public ShouldRevealCardFromHandForCard ( GameState gameState, Dominion.Card card, Dominion.Card cardFor ) : bool
gameState GameState
card Dominion.Card
cardFor Dominion.Card
return bool

ShouldTrashCard() public method

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

WantToResign() public method

public WantToResign ( GameState gameState ) : bool
gameState GameState
return bool