public bool Matches(SniperInfo sniperInfo)
        {
            var pokemonIds = PokemonFilterParser.ParseBinary(Pokemon);

            if (pokemonIds == null || pokemonIds.Contains(sniperInfo.Id))
            {
                return(AreaBounds == null || AreaBounds.Intersects(sniperInfo.Latitude, sniperInfo.Longitude));
            }
            return(false);
        }
Exemplo n.º 2
0
        public bool Matches(SniperInfo sniperInfo)
        {
            var pokemonIds = PokemonFilterParser.ParseBinary(Pokemon);

            if (pokemonIds != null && !pokemonIds.Contains(sniperInfo.Id))
            {
                return(false);
            }
            if (AreaBounds != null && !AreaBounds.Intersects(sniperInfo.Latitude, sniperInfo.Longitude))
            {
                return(false);
            }
            if (MinimumIV > sniperInfo.IV)
            {
                return(false);
            }
            return(true);
        }