예제 #1
0
        public void DealOpenCard(bool isOpen, Player a_player)
        {
            Card card = m_deck.GetCard();

            card.Show(isOpen);
            a_player.DealCard(card);
        }
예제 #2
0
        public void Deal(Player player, bool showCard)
        {
            Card c = m_deck.GetCard();

            c.Show(showCard);
            player.DealCard(c);
        }
예제 #3
0
        public void GetCard(Deck m_deck)
        {
            Card c = m_deck.GetCard();

            c.Show(true);
            DealCard(c);
        }
예제 #4
0
        public void GetShowDealCard(bool show, Player a_player)
        {
            Card c = m_deck.GetCard();

            c.Show(show);
            a_player.DealCard(c);
        }
예제 #5
0
        public void GetAndGiveNewCard(Player a_player, bool show)
        {
            Card c = m_deck.GetCard();

            c.Show(show);
            a_player.DealCard(c);
        }
예제 #6
0
        public void GetCardFromDeckAndDealIt(Player a_player, bool visibility)
        {
            Card c = m_deck.GetCard();

            c.Show(visibility);
            a_player.DealCard(c);
        }
예제 #7
0
        public void Deal(Player a_player, bool show)
        {
            Card c = m_deck.GetCard();

            c.Show(show);
            a_player.DealCard(c);
        }
예제 #8
0
        public void DealCard(Player a_player, bool a_show)
        {
            Card c = m_deck.GetCard();

            c.Show(a_show);
            a_player.AddToHand(c);
        }
예제 #9
0
        private void GetShowDealCard(Player player, bool show)
        {
            NotifySubscribers();
            Card c = m_deck.GetCard();

            c.Show(show);
            player.DealCard(c);
        }
예제 #10
0
파일: Dealer.cs 프로젝트: sk222sw/blackjack
        public void GetCard(Player player, bool doShow)
        {
            Card card = m_deck.GetCard();

            card.Show(doShow);
            player.DealCard(card);
            NotifySubscriber();
        }
예제 #11
0
        public void NewCard(Player a_player, bool show = true)
        {
            Card c = m_deck.GetCard();

            c.Show(show);
            a_player.DealCard(c);

            //iobserver.update();
        }
예제 #12
0
 public void HitPlayer(Player a_player)
 {
     if (m_deck != null && a_player.GetScoreOfHand() < 21)
     {
         Card c = m_deck.GetCard();
         c.Show();
         a_player.DealCard(c);
     }
 }
예제 #13
0
        private Card GetCardAndShow(Player a_player)
        {
            Card card = m_deck.GetCard();

            card.Show(true);
            a_player.DealCard(card);

            return(card);
        }
예제 #14
0
        public void GetNewCard(Player a_player, bool a_showCard = true)
        {
            foreach (IBlackJackObserver a_observer in m_observers)
            {
                a_observer.AddCardDelay();
            }
            Card c = m_deck.GetCard();

            c.Show(a_showCard);
            a_player.DealCard(c);
        }
예제 #15
0
        public void getShowDealCard(Player a_player, Boolean show)
        {
            Card c = m_deck.GetCard();

            c.Show(show);
            a_player.DealCard(c);
            foreach (BlackJackObserver o in m_observers)
            {
                o.CardDealt();
            }
        }
예제 #16
0
        public void GetCard(Player player, bool showCard = true)
        {
            Card c = m_deck.GetCard();

            c.Show(showCard);
            player.DealCard(c);
            foreach (BlackJackObserver observer in m_BlackJackObserver)
            {
                observer.CardDisplayed();
            }
        }
예제 #17
0
        public void DealCard(bool show, model.Player player)
        {
            Card c = m_deck.GetCard();

            c.Show(show);
            player.DealCard(c);
            foreach (var observer in observers)
            {
                observer.CardWasDealt(player);
            }
        }
예제 #18
0
        public void DrawAndDealCard(Player a_dealerOrPlayer, bool ShowOrHideCard, Player a_player)
        {
            Card c = m_deck.GetCard();

            c.Show(ShowOrHideCard);
            a_dealerOrPlayer.DealCard(c);

            foreach (IExcitingObserver listener in m_listeners)
            {
                listener.RedrawAndShowHand(this, a_player);
            }
        }
예제 #19
0
        public void DrawCard(Player a_user, bool a_hidden)
        {
            Card c = m_deck.GetCard();

            c.Show(a_hidden);
            a_user.DealCard(c);

            foreach (var l in m_subscribers)
            {
                l.CardListener();
            }
        }
예제 #20
0
        public void NewCard(Deck aDeck, Player aPlayer, bool showCard = true)
        {
            Card newCardFromDeck = aDeck.GetCard();

            newCardFromDeck.Show(showCard);
            aPlayer.DealCard(newCardFromDeck);

            foreach (IBlackJackObserver observer in m_observers)
            {
                observer.newCardDelt();
            }
        }
예제 #21
0
        public void Stand()
        {
            if (m_deck != null)
            {
                ShowHand();
                while (GetScoreOfHand() <= 16)
                {
                    Card c = m_deck.GetCard();
                    c.Show();
                    DealCard(c);
                }

                m_deck = null;
            }
        }
예제 #22
0
        public bool Stand()
        {
            if (m_deck != null)
            {
                ShowHand();
                while (m_hitRule.DoHit(this))
                {
                    Card c = m_deck.GetCard();
                    c.Show(true);
                    DealCard(c);
                }

                return(true);
            }

            return(false);
        }
예제 #23
0
 public void DealShownCardFromDeck(Deck a_deck)
 {
     card = a_deck.GetCard();
     card.Show(true);
     DealCard(card);
 }
예제 #24
0
 public void showAndAdd(Card card, bool show)
 {
     card.Show(show);
     this.DealCard(card);
 }