public static List <IRarePokemonRepository> CreateRepositories(GlobalSettings globalSettings) { var rarePokemonRepositories = new List <IRarePokemonRepository>(); var pokemonIds = RarePokemonsFactory.createRarePokemonList(); if (GlobalSettings.UsePokeSnipers) { rarePokemonRepositories.Add(new PokeSniperRarePokemonRepository(pokemonIds)); } if (GlobalSettings.UseTrackemon) { rarePokemonRepositories.Add(new TrackemonRarePokemonRepository(pokemonIds)); } if (GlobalSettings.UsePokezz) { rarePokemonRepositories.Add(new PokezzRarePokemonRepository(pokemonIds)); } if (GlobalSettings.UsePokeSpawns) { rarePokemonRepositories.Add(new PokeSpawnsRarePokemonRepository(pokemonIds)); } if (GlobalSettings.UsePokewatchers) { rarePokemonRepositories.Add(new PokewatchersRarePokemonRepository(pokemonIds)); } return(rarePokemonRepositories); }
public static List <RarePokemonRepository> createRepositories(GlobalSettings globalSettings) { List <RarePokemonRepository> rarePokemonRepositories = new List <RarePokemonRepository>(); List <PokemonId> pokemonIds = RarePokemonsFactory.createRarePokemonList(); if (globalSettings.UsePokeSnipers) { rarePokemonRepositories.Add(new PokeSniperRarePokemonRepository(pokemonIds)); } if (globalSettings.UseTrackemon) { rarePokemonRepositories.Add(new TrackemonRarePokemonRepository(pokemonIds)); } return(rarePokemonRepositories); }
public TrackemonRarePokemonRepository() { this._pokemonIdsToFind = RarePokemonsFactory.createRarePokemonList(); }