示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
 public TrackemonRarePokemonRepository()
 {
     this._pokemonIdsToFind = RarePokemonsFactory.createRarePokemonList();
 }