RequestPlayerChooseTrashOrTopDeck() private method

private RequestPlayerChooseTrashOrTopDeck ( GameState gameState, Dominion.Card card ) : DeckPlacement
gameState GameState
card Dominion.Card
return DeckPlacement
 public new DeckPlacement DoSpecializedActionOnGainWhileInHand(PlayerState currentPlayer, GameState gameState, Card gainedCard)
 {
     if (currentPlayer.actions.ShouldRevealCardFromHand(gameState, this))
     {
         return currentPlayer.RequestPlayerChooseTrashOrTopDeck(gameState, gainedCard);
     }
     else
     {
         return DeckPlacement.Default;
     }
 }
Beispiel #2
0
 public new DeckPlacement DoSpecializedActionOnGainWhileInHand(PlayerState currentPlayer, GameState gameState, Card gainedCard)
 {
     if (currentPlayer.actions.ShouldRevealCardFromHand(gameState, this))
     {
         // how does the player know what card is being asked about?
         // throw new NotImplementedException
         return currentPlayer.RequestPlayerChooseTrashOrTopDeck(gameState, gainedCard);
     }
     else
     {
         return DeckPlacement.Default;
     }
 }