cloneIfNeeded

open fun cloneIfNeeded(destination: Node<T>, reaction: Reaction<T>): ConstantSpeed<T, P>(source)

Return

A copy of the strategy if the strategy is stateful, and this object otherwise. The default implementation assumes a stateless strategy.

Parameters

destination

the Node where the strategy is being cloned

reaction

the Reaction where strategy is being cloned