예제 #1
0
        private async Task SetCardToCharacters(ICardHolder cardHandler, int cardHandlerIndex, int cardsCountToSet)
        {
            var cards = new List<ICard>();
            for (int i = 0; i < cardsCountToSet; i++)
            {
                cards.Add(this.cards[cardHandlerIndex * cardsCountToSet + i]);
            }

            await cardHandler.SetAllCards(cards);
        }
예제 #2
0
        private async Task SetCardToPokerManager(ICardHolder cardHandler, int cardsCountToSet, int allPlayersCardsCount)
        {
            var cards = new List <ICard>();

            for (int i = 0; i < cardsCountToSet; i++)
            {
                cards.Add(this.cards[allPlayersCardsCount + i]);
            }

            await cardHandler.SetAllCards(cards);
        }
예제 #3
0
        private async Task SetCardToCharacters(ICardHolder cardHandler, int cardHandlerIndex, int cardsCountToSet)
        {
            var cards = new List <ICard>();

            for (int i = 0; i < cardsCountToSet; i++)
            {
                cards.Add(this.cards[cardHandlerIndex * cardsCountToSet + i]);
            }

            await cardHandler.SetAllCards(cards);
        }
예제 #4
0
        private async Task SetCardToPokerManager(ICardHolder cardHandler, int cardsCountToSet, int allPlayersCardsCount)
        {
            var cards = new List<ICard>();

            for (int i = 0; i < cardsCountToSet; i++)
            {
                cards.Add(this.cards[allPlayersCardsCount + i]);
            }

            await cardHandler.SetAllCards(cards);
        }