public void Init(Gameplay gameplay, BonusView bonusView, Hud hud) { m_bonusView = bonusView; m_gameplay = gameplay; m_hud = hud; m_gameplay.TileRevealedWithSuccess += HandleTileRevealedWithSuccess; }
public ViewInitializer(BonusView bonusView, ButtonView buttonView, HealthView healthView, KeyView keyView, EndGameView endGameView) { _bonusView = bonusView; _buttonView = buttonView; _healthView = healthView; _keyView = keyView; _endGameView = endGameView; }
public bool IsTimeToSpawn(BonusView bonus, PlayerView player) { if (ActiveBonusObjects > 0) { return(false); } this.player = player; bonus.Accept(this); return(result); }
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); }
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; }