use of main.elements.conditions.standard.OccupiedCondition in project Eidolons by IDemiurge.
the class FilterMaster method getCellsInRadius.
public static Set<Obj> getCellsInRadius(Obj centerObj, Integer radius) {
Conditions conditions = new Conditions();
conditions.add(ConditionMaster.getDistanceFilterCondition("SOURCE", radius, true));
conditions.add(new NotCondition(new OccupiedCondition("MATCH")));
Set<Obj> set = new Filter<Obj>(centerObj.getRef(), conditions, DC_TYPE.TERRAIN).getObjects();
return set;
}
Aggregations