public StandardMelodyLoader(ILocationChanger locationChanger, GameSettings gameSettings)
 {
     this.gameSettings = gameSettings;
     location          = gameSettings.MelodyLocation;
     locationChanger.LocationChange += UpdateLocation;
 }
Exemple #2
0
 public void SetUp()
 {
     changer  = new Mock <ILocationChanger>().Object;
     settings = new Mock <GameSettings>().Object;
 }
Exemple #3
0
        public Map(MapSettings settings, ILoaderSettings loaderSettings, IMapChange mapChange, ILoaderChanger changer, ILocationChanger locationChanger)
        {
            this.gameSettings               = loaderSettings;
            Melody                          = loaderSettings.GetLoader().Load();
            changer.LoaderChange           += Update;
            locationChanger.LocationChange += Update;
            Height                          = settings.Height;
            Width          = settings.Width;
            index          = -1;
            this.mapChange = mapChange;

            keys = new PianoKey[Height, Width];
            for (var i = 0; i < Height; i++)
            {
                MapUpdate();
            }
        }
Exemple #4
0
 public MelodyFileLoader(ILocationChanger locationChanger, GameSettings settings)
 {
     this.settings = settings;
     location      = settings.MelodyLocation;
     locationChanger.LocationChange += UpdateLocation;
 }