public void DealOpenCard(bool isOpen, Player a_player) { Card card = m_deck.GetCard(); card.Show(isOpen); a_player.DealCard(card); }
public void Deal(Player player, bool showCard) { Card c = m_deck.GetCard(); c.Show(showCard); player.DealCard(c); }
public void GetCard(Deck m_deck) { Card c = m_deck.GetCard(); c.Show(true); DealCard(c); }
public void GetShowDealCard(bool show, Player a_player) { Card c = m_deck.GetCard(); c.Show(show); a_player.DealCard(c); }
public void GetAndGiveNewCard(Player a_player, bool show) { Card c = m_deck.GetCard(); c.Show(show); a_player.DealCard(c); }
public void GetCardFromDeckAndDealIt(Player a_player, bool visibility) { Card c = m_deck.GetCard(); c.Show(visibility); a_player.DealCard(c); }
public void Deal(Player a_player, bool show) { Card c = m_deck.GetCard(); c.Show(show); a_player.DealCard(c); }
public void DealCard(Player a_player, bool a_show) { Card c = m_deck.GetCard(); c.Show(a_show); a_player.AddToHand(c); }
private void GetShowDealCard(Player player, bool show) { NotifySubscribers(); Card c = m_deck.GetCard(); c.Show(show); player.DealCard(c); }
public void GetCard(Player player, bool doShow) { Card card = m_deck.GetCard(); card.Show(doShow); player.DealCard(card); NotifySubscriber(); }
public void NewCard(Player a_player, bool show = true) { Card c = m_deck.GetCard(); c.Show(show); a_player.DealCard(c); //iobserver.update(); }
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); } }
private Card GetCardAndShow(Player a_player) { Card card = m_deck.GetCard(); card.Show(true); a_player.DealCard(card); return(card); }
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); }
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(); } }
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(); } }
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); } }
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); } }
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(); } }
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(); } }
public void Stand() { if (m_deck != null) { ShowHand(); while (GetScoreOfHand() <= 16) { Card c = m_deck.GetCard(); c.Show(); DealCard(c); } m_deck = null; } }
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); }
public void DealShownCardFromDeck(Deck a_deck) { card = a_deck.GetCard(); card.Show(true); DealCard(card); }
public void showAndAdd(Card card, bool show) { card.Show(show); this.DealCard(card); }