public void Initialize(ISetting setting, IGroupFactory groupFactory) { _setting = setting; _groupFactory = groupFactory; SetState(GridStates.GameOver); if (_setting.GetGameText(GameTextType.GameMessageCenter) == null) { _gameTextCenter = NullGameText.Instance; } else { _gameTextCenter = _setting.GetGameText(GameTextType.GameMessageCenter); } _cpuManager = new CPUManager(this, _setting); // initialize highscore if it is a player game. if (_setting.IsPlayer) { _highScoreManager = new HighScoreManager(); } if (_highScoreManager != null) { DisplayStartMessageAndHighScore(); } }
public HighScoreController( //TelemetryClient telemetryClient, IHighScoreManager highScoreManager) { //this.telemetryClient = telemetryClient; this.highScoreManager = highScoreManager; }
public HighScoreController( //TelemetryClient telemetryClient, IMemoryCache highscoreCache, IHighScoreManager highScoreManager) { //this.telemetryClient = telemetryClient; this.highscoreCache = highscoreCache; this.highScoreManager = highScoreManager; }
public HighScoreController(IHighScoreManager highScoreManager) { this.highScoreManager = highScoreManager; }
public void Initialize(ISetting setting, IGroupFactory groupFactory) { _setting = setting; _groupFactory = groupFactory; SetState(GridStates.GameOver); if (_setting.GetGameText(GameTextType.GameMessageCenter) == null) { _gameTextCenter = NullGameText.Instance; } else { _gameTextCenter = _setting.GetGameText(GameTextType.GameMessageCenter); } _cpuManager = new CPUManager(this, _setting); // initialize highscore if it is a player game. if (_setting.IsPlayer) { _highScoreManager = new HighScoreManager(); } if(_highScoreManager != null) { DisplayStartMessageAndHighScore(); } }
public HighscoreService(IHighScoreManager highScoreManager) { this.highScoreManager = highScoreManager; }