Class HeadTowardTarget
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Action
,java.io.Serializable
public final class HeadTowardTarget<T extends Object> extends AbstractAction<T>
Reads the target's absolute coordinates from the target molecule contained in node and sets the node's heading accordingly.
-
-
Constructor Summary
Constructors Constructor Description HeadTowardTarget(Node<T> node, Physics2DEnvironment<T> environment, Reaction<T> reaction, Molecule target, Double angularSpeedDegrees)
HeadTowardTarget(Node<T> node, Physics2DEnvironment<T> environment, Reaction<T> reaction, Molecule target)
-
Method Summary
Modifier and Type Method Description HeadTowardTarget<T>
cloneAction(Node<T> node, Reaction<T> reaction)
Unit
execute()
Sets the heading of the node according to the target molecule. Context
getContext()
-
-
Method Detail
-
cloneAction
HeadTowardTarget<T> cloneAction(Node<T> node, Reaction<T> reaction)
-
getContext
Context getContext()
-
-
-
-