agentsWithin

fun agentsWithin(cell: Cell, radius: Int, metric: GridMetric = GridMetric.CHEBYSHEV, includeCenter: Boolean = false): List<A>(source)

All agents currently in cells within radius of cell under metric. Excludes occupants of cell itself unless includeCenter is true.