MoveCardFromPlayedCardToIslandMat() 개인적인 메소드

private MoveCardFromPlayedCardToIslandMat ( Dominion.Card card ) : void
card Dominion.Card
리턴 void
예제 #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);
        }
예제 #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);
            }
        }