public Game() { m_observers = new List<PlayerHandChangedObserver>(); m_dealer = new Dealer(new rules.RulesFactory()); m_player = new Player(); //subscribe to dealer events (when cards are dealed) m_dealer.AddSubscriber(this); }
public void AddSubscribers(ICardDealObserver a_sub) { m_dealer.AddSubscriber(a_sub); m_player.AddSubscriber(a_sub); }
public void AddSubscriber(controller.PlayGame a_gamePlay) { m_dealer.AddSubscriber(a_gamePlay); }
public void SubscribeToCardDrawn(IObserver a_observer) { m_dealer.AddSubscriber(a_observer); m_player.AddSubscriber(a_observer); }
public void AddSubscriber(IBlackJackObserver a_sub) { m_dealer.AddSubscriber(a_sub); }
public void AddSubscriber(BlackJack.controller.PlayGame obj) { m_dealer.AddSubscriber(obj); }
public void AddSubscriber(ICardRecievedObserver a_sub) { m_player.AddSubscriber(a_sub); m_dealer.AddSubscriber(a_sub); }
// public void AddSubscriber(IObserver a_sub) { m_player.AddSubscriber(a_sub); m_dealer.AddSubscriber(a_sub); }
public void AddObserver(BlackJackObserver blackJackObserver) { m_dealer.AddSubscriber(blackJackObserver); }
// Added code. public void AddSubscriber(IDealCardsObserver subscriber) { m_player.AddSubscriber(subscriber); m_dealer.AddSubscriber(subscriber); }
public void AddSubscriberToPlayer(ICardDealtObserver observer) { m_player.AddSubscriber(observer); m_dealer.AddSubscriber(observer); }