Filtered
open class Filtered<T, P : Position<P>, Vector<P>>(steerStrategy: SteeringStrategy<T, P>, filter: List<SteeringAction<T, P>>.() -> List<SteeringAction<T, P>>) : SteeringStrategy<T, P>
SteeringStrategy decorator applying a filter to the list of steering actions (see computeNextPosition).
Parameters
steer Strategy
computeNextPosition is delegated to this strategy.
Content copied to clipboard
filter
the filter to apply on the list of steering actions.
Content copied to clipboard
Inheritors
Constructors
Link copied to clipboard
constructor(steerStrategy: SteeringStrategy<T, P>, filter: List<SteeringAction<T, P>>.() -> List<SteeringAction<T, P>>)