Dominion.PlayerState.MoveCardFromPlayToPile C# (CSharp) Method

MoveCardFromPlayToPile() private method

private MoveCardFromPlayToPile ( GameState gameState ) : bool
gameState GameState
return bool
        internal bool MoveCardFromPlayToPile(GameState gameState)
        {
            bool wasReturned = false;
            Card cardInPlay = this.cardsBeingPlayed.DrawCardFromTop();
            if (cardInPlay != null)
            {
                this.ReturnCardToSupply(cardInPlay, gameState);
                wasReturned = true;
            }

            this.cardsBeingPlayed.AddCardToTop(null);
            return wasReturned;
        }

Usage Example

示例#1
0
 public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState)
 {
     if (currentPlayer.MoveCardFromPlayToPile(gameState))
     {
         currentPlayer.DrawAdditionalCardsIntoHand(currentPlayer.Hand.Count);
     }
 }
All Usage Examples Of Dominion.PlayerState::MoveCardFromPlayToPile
PlayerState