HeadTowardRandomDirection

class HeadTowardRandomDirection<T>(node: Node<T>, environment: Physics2DEnvironment<T>, randomGenerator: RandomGenerator) : AbstractAction<T>

Changes the heading of node randomly. The environment must support node heading, hence, be a Physics2DEnvironment.

Constructors

Link copied to clipboard
constructor(node: Node<T>, environment: Physics2DEnvironment<T>, randomGenerator: RandomGenerator)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun cloneAction(node: Node<T>, reaction: Reaction<T>): Action<T>

{@inheritDoc}.

Link copied to clipboard
open override fun execute()

Changes the heading of the node randomly.

Link copied to clipboard
open override fun getContext(): Context

{@inheritDoc}.

Link copied to clipboard
@Nonnull
override fun getOutboundDependencies(): ListSet<out Dependency>
Link copied to clipboard
open override fun toString(): String