public IShieldQueryWithIntersects HostileTo(Faction faction, bool invert = false) { return(new ShieldQueryWithIntersects( _elements.Where(e => ShieldQueryUtils.HostileTo(e.First, faction, invert)), _map)); }
public IShieldQuery HostileTo(Faction faction, bool invert = false) { return(new FieldQuery(_shields.Where(shield => ShieldQueryUtils.HostileTo(shield, faction, invert)), _map)); }