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);
        }
예제 #2
0
 public void AddSubscribers(ICardDealObserver a_sub)
 {
     m_dealer.AddSubscriber(a_sub);
     m_player.AddSubscriber(a_sub);
 }
예제 #3
0
 public void AddSubscriber(controller.PlayGame a_gamePlay)
 {
     m_dealer.AddSubscriber(a_gamePlay);
 }
예제 #4
0
 public void SubscribeToCardDrawn(IObserver a_observer)
 {
     m_dealer.AddSubscriber(a_observer);
     m_player.AddSubscriber(a_observer);
 }
예제 #5
0
파일: Game.cs 프로젝트: ej222ru/1DV607_WS3
 public void AddSubscriber(IBlackJackObserver a_sub)
 {
     m_dealer.AddSubscriber(a_sub);
 }
예제 #6
0
 public void AddSubscriber(BlackJack.controller.PlayGame obj)
 {
     m_dealer.AddSubscriber(obj);
 }
예제 #7
0
 public void AddSubscriber(ICardRecievedObserver a_sub)
 {
     m_player.AddSubscriber(a_sub);
     m_dealer.AddSubscriber(a_sub);
 }
예제 #8
0
 //
 public void AddSubscriber(IObserver a_sub)
 {
     m_player.AddSubscriber(a_sub);
     m_dealer.AddSubscriber(a_sub);
 }
예제 #9
0
 public void AddObserver(BlackJackObserver blackJackObserver)
 {
     m_dealer.AddSubscriber(blackJackObserver);
 }
예제 #10
0
 // Added code.
 public void AddSubscriber(IDealCardsObserver subscriber)
 {
     m_player.AddSubscriber(subscriber);
     m_dealer.AddSubscriber(subscriber);
 }
예제 #11
0
파일: Game.cs 프로젝트: Lendzin/1dv607
 public void AddSubscriberToPlayer(ICardDealtObserver observer)
 {
     m_player.AddSubscriber(observer);
     m_dealer.AddSubscriber(observer);
 }