public Game(IPhraseProvider phraseProvider, IInputOutputComponent ioComponent, IDoorsNumbersGenerator doorsGenerator, ISettingsProvider settingsProvider) { this.phraseProvider = phraseProvider; this.ioComp = ioComponent; this.doorsGenerator = doorsGenerator; this.settings = settingsProvider; this.gameSettings = settings.GetGameSettings(); this.selectedNumbersHistory = new Stack <int>(); this.Level = 1; }
bool exitCode = false; //flag to exit (if entered exit code) public DoorsAndLevels( IInputOutputComponent inputOutputComponent, IDoorsNumbersGenerator doorsNumbersGenerator, ISettingsProvider settingsProvider, IPhraseProvider phraseProvider, IStorageComponent stackStorageComponent ) { this.ioComponent = inputOutputComponent; this.doorsNumbersGenerator = doorsNumbersGenerator; this.settingsProvider = settingsProvider; this.phraseProvider = phraseProvider; this.stackStorageComponent = stackStorageComponent; this.gameSettings = this.settingsProvider.gameSettings(); m_arrayDoorsValue = new int[gameSettings.doorsAmount]; }