Add() 개인적인 메소드

private Add ( Player player, Card card ) : void
player Player
card Card
리턴 void
예제 #1
0
        internal void PlayerPlayedCard(Player player, Card playedCard)
        {
            _playingManager.Add(player, playedCard);

            player.Cards.Remove(playedCard);

            foreach (Card card in player.Cards)
            {
                card.IsSelectable = false;
            }

            if (_playingManager.IsHandClosed)
            {
                Hand lastHand = _playingManager.GetLastHand();
                CalculatePoints(lastHand);
                _game.HandIsClosed(lastHand);
                NextHand();
            }
            else
            {
                PlayerHasTurn(_game.GetNextPlayer(player));
            }
        }