-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Action,java.io.Serializable
public final class MoveForwardAndTeleport<T, P extends Position2D<P>> extends AbstractMoveNode<T, P>
-
-
Constructor Summary
Constructors Constructor Description MoveForwardAndTeleport(Environment<T, P> environment, Node<T> node, double deltaX, double minX, double maxX)
-
Method Summary
Modifier and Type Method Description MoveForwardAndTeleport<T, P>cloneAction(Node<T> node, Reaction<T> reaction)PgetNextPosition()doublegetMaxX()doublegetMinX()doublegetDeltaX()-
Methods inherited from class it.unibo.alchemist.model.implementations.actions.AbstractMoveNode
execute, getContext -
Methods inherited from class it.unibo.alchemist.model.implementations.actions.AbstractAction
getOutboundDependencies, toString -
Methods inherited from class it.unibo.alchemist.model.interfaces.Action
execute, getContext, getOutboundDependencies -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MoveForwardAndTeleport
MoveForwardAndTeleport(Environment<T, P> environment, Node<T> node, double deltaX, double minX, double maxX)
- Parameters:
environment- the environmentnode- the nodedeltaX- how far along the x axis the node should move each time the action is triggeredminX- minimum x pointmaxX- maximum x point
-
-
Method Detail
-
cloneAction
MoveForwardAndTeleport<T, P> cloneAction(Node<T> node, Reaction<T> reaction)
-
getNextPosition
P getNextPosition()
-
getMaxX
double getMaxX()
-
getMinX
double getMinX()
-
getDeltaX
double getDeltaX()
-
-
-
-