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); }
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); }