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()) { ; } }
public void AddSubscriber(controller.PlayGame a_gamePlay) { m_dealer.AddSubscriber(a_gamePlay); }
public void setPlayerListener(controller.PlayGame c) { m_player.RegisterListener(c); }
public void RegisterListener(controller.PlayGame ctrl) { m_dealer.RegisterListener(ctrl); }