public StandardMelodyLoader(ILocationChanger locationChanger, GameSettings gameSettings) { this.gameSettings = gameSettings; location = gameSettings.MelodyLocation; locationChanger.LocationChange += UpdateLocation; }
public void SetUp() { changer = new Mock <ILocationChanger>().Object; settings = new Mock <GameSettings>().Object; }
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(); } }
public MelodyFileLoader(ILocationChanger locationChanger, GameSettings settings) { this.settings = settings; location = settings.MelodyLocation; locationChanger.LocationChange += UpdateLocation; }