Пример #1
0
    public void Init(Gameplay gameplay, BonusView bonusView, Hud hud)
    {
        m_bonusView = bonusView;
        m_gameplay  = gameplay;
        m_hud       = hud;

        m_gameplay.TileRevealedWithSuccess += HandleTileRevealedWithSuccess;
    }
Пример #2
0
 public ViewInitializer(BonusView bonusView, ButtonView buttonView, HealthView healthView, KeyView keyView,
                        EndGameView endGameView)
 {
     _bonusView   = bonusView;
     _buttonView  = buttonView;
     _healthView  = healthView;
     _keyView     = keyView;
     _endGameView = endGameView;
 }
Пример #3
0
        public bool IsTimeToSpawn(BonusView bonus, PlayerView player)
        {
            if (ActiveBonusObjects > 0)
            {
                return(false);
            }

            this.player = player;
            bonus.Accept(this);
            return(result);
        }
Пример #4
0
        public static BonusView GetViewModell(Bonus b)
        {
            BonusView bv = new BonusView();

            if (b != null)
            {
                bv.Name         = b.Name;
                bv.Price        = b.Price;
                bv.BonusRepairs = b.BonusRepairs?.Select(br => GetViewModell(br)).ToList();
            }
            return(bv);
        }
Пример #5
0
 public GameplayController(
     Gameplay gameplay,
     Hud hud,
     PauseView pauseView,
     SummaryView summaryView,
     PenaltyView penaltyView,
     BonusView bonusView,
     Board board,
     BoardController boardInputController,
     LevelIntroView levelIntroView,
     TutorialView tutorialView)
 {
     m_gameplay             = gameplay;
     m_hud                  = hud;
     m_pauseView            = pauseView;
     m_summaryView          = summaryView;
     m_penaltyView          = penaltyView;
     m_bonusView            = bonusView;
     m_board                = board;
     m_levelIntroView       = levelIntroView;
     m_boardInputController = boardInputController;
     m_tutorialView         = tutorialView;
 }