GuessCardTopOfDeck() 개인적인 메소드

private GuessCardTopOfDeck ( GameState gameState ) : Dominion.Card
gameState GameState
리턴 Dominion.Card
예제 #1
0
        public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState)
        {
            Card cardType = currentPlayer.GuessCardTopOfDeck(gameState);

            Card revealedCard = currentPlayer.DrawAndRevealOneCardFromDeck();
            if (revealedCard != cardType)
            {
                currentPlayer.MoveAllRevealedCardsToHand();
            }
            else
            {
                currentPlayer.MoveRevealedCardsToDiscard(gameState);
            }
        }
예제 #2
0
 public override void DoSpecializedAction(PlayerState currentPlayer, GameState gameState)
 {
     //currentPlayer.gameLog.LogDeck(gameState.players.CurrentPlayer);
     Card cardType = currentPlayer.GuessCardTopOfDeck(gameState);
     currentPlayer.RevealCardsFromDeck(1);
     if (currentPlayer.cardsBeingRevealed.HasCard(cardType))
     {
         currentPlayer.MoveRevealedCardToHand(cardType);
     }
     else
     {
         currentPlayer.MoveRevealedCardToTopOfDeck();
     }
 }