예제 #1
0
        static void Main(string[] args)
        {
            model.Game          g    = new model.Game();
            view.IView          v    = new view.SimpleView(); // new view.SwedishView();
            controller.PlayGame ctrl = new controller.PlayGame(g, v);

            while (ctrl.Play())
            {
                ;
            }
        }
        static void Main(string[] args)
        {
            model.Game game        = new model.Game();
            var        swedishView = false;

            view.IView view;
            if (swedishView)
            {
                view = new view.SwedishView();
            }
            else
            {
                view = new view.SimpleView();
            }
            controller.PlayGame ctrl = new controller.PlayGame(game, view);

            while (ctrl.Play())
            {
                ;
            }
        }
예제 #3
0
 public void AddSubscriber(controller.PlayGame a_gamePlay)
 {
     m_dealer.AddSubscriber(a_gamePlay);
 }
예제 #4
0
 public void setPlayerListener(controller.PlayGame c)
 {
     m_player.RegisterListener(c);
 }
예제 #5
0
파일: Game.cs 프로젝트: Xeald86/blackJack
 public void RegisterListener(controller.PlayGame ctrl)
 {
     m_dealer.RegisterListener(ctrl);
 }