MoveCardFromHandToIslandMat() private method

private MoveCardFromHandToIslandMat ( Dominion.Card cardType ) : void
cardType Dominion.Card
return void
Beispiel #1
0
        public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState)
        {
            currentPlayer.MoveCardFromPlayedCardToIslandMat(this);

            if (!currentPlayer.hand.Any)
                return;
            Card cardType = currentPlayer.actions.GetCardFromHandToIsland(gameState);
            currentPlayer.MoveCardFromHandToIslandMat(cardType);
        }
Beispiel #2
0
        public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState)
        {
            currentPlayer.MoveCardFromPlayedCardToIslandMat(this);

            if (!currentPlayer.hand.Any)
                return;
            Card cardType = currentPlayer.actions.GetCardFromHandToIsland(gameState);
            if (currentPlayer.Hand.Any && cardType == null)
                throw new Exception("Player must island a card from his hand");
            if (cardType != null)
            {
                currentPlayer.MoveCardFromHandToIslandMat(cardType);
                gameState.gameLog.PlayerPlacedCardOnIslandMat(currentPlayer, cardType);
            }
        }