Exemple #1
0
    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;
 }
Exemple #3
0
 public HighScoreController(
     //TelemetryClient telemetryClient,
     IMemoryCache highscoreCache,
     IHighScoreManager highScoreManager)
 {
     //this.telemetryClient = telemetryClient;
     this.highscoreCache   = highscoreCache;
     this.highScoreManager = highScoreManager;
 }
 public HighScoreController(IHighScoreManager highScoreManager)
 {
     this.highScoreManager = highScoreManager;
 }
Exemple #5
0
    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();
        }
    }
Exemple #6
0
 public HighscoreService(IHighScoreManager highScoreManager)
 {
     this.highScoreManager = highScoreManager;
 }