net.nexttext.behaviour.physics
Class Push
java.lang.Object
net.nexttext.behaviour.AbstractAction
net.nexttext.behaviour.physics.PhysicsAction
net.nexttext.behaviour.physics.Push
- All Implemented Interfaces:
- Action
public class Push
- extends PhysicsAction
This action gives the object a one-time velocity push in a given
direction.
Constructor Summary |
Push()
Default constructor. |
Push(float x,
float y,
float force)
|
Push(float x,
float y,
float z,
float force)
|
Push(processing.core.PVector direction,
float force)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Push
public Push()
- Default constructor. Force is equal to 3.
Push
public Push(float x,
float y,
float force)
Push
public Push(float x,
float y,
float z,
float force)
Push
public Push(processing.core.PVector direction,
float force)
init
public void init(processing.core.PVector direction,
float force)
behave
public Action.ActionResult behave(TextObject to)
- Description copied from class:
AbstractAction
- Default behave method for single objects.
This method does nothing; it should be overriden by subclasses if
they wish to support actions on single objects.
Trying to call this method on an Action which doesn't override it
will throw an UnsupportedActionException.
- Specified by:
behave
in interface Action
- Overrides:
behave
in class AbstractAction