protected override ICollection <SimDescription> GetTargets(SimDescription sim) { List <SimDescription> results = new List <SimDescription>(); foreach (SimDescription parent in Relationships.GetParents(sim)) { foreach (Relationship relation in Relationship.Get(parent)) { if (!relation.AreEnemies()) { continue; } SimDescription other = relation.GetOtherSimDescription(parent); if (other == null) { continue; } foreach (SimDescription child in Relationships.GetChildren(other)) { results.Add(child); } } } return(Flirts.FindAnyFor(this, sim, true, Force, results)); }
protected override ICollection <SimDescription> GetTargets(SimDescription sim) { return(Flirts.FindAnyFor(this, sim, false, false)); }