예제 #1
0
        public void Initialize()
        {
            var selfPlayer           = Locator.PlayerManager.GetPlayer(GameTypes.PlayerType.SELF);
            var selfPlayerViewModel  = new PlayerViewModel(selfPlayer);
            var enemyPlayer          = Locator.PlayerManager.GetPlayer(GameTypes.PlayerType.ENEMY);
            var enemyPlayerViewModel = new PlayerViewModel(enemyPlayer);

            PlayerUIPresenter.Initialize(selfPlayerViewModel, enemyPlayerViewModel, _uiManager.Players);
            BoardUIPresenter.Initialize(selfPlayerViewModel, _uiManager.Lifes);
            BoardUIPresenter.Initialize(enemyPlayerViewModel, _uiManager.Lifes);
        }
예제 #2
0
 public OutGamePresenter(UIManager uiManager)
 {
     _uiManager        = uiManager;
     PlayerUIPresenter = new PlayerUIPresenter();
     BoardUIPresenter  = new BoardUIPresenter();
 }