net.nexttext.behaviour.standard
Class RandomMotion

java.lang.Object
  extended by net.nexttext.behaviour.AbstractAction
      extended by net.nexttext.behaviour.standard.RandomMotion
All Implemented Interfaces:
Action

public class RandomMotion
extends AbstractAction

Moves a TextObject randomly.


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.nexttext.behaviour.Action
Action.ActionResult
 
Constructor Summary
RandomMotion()
          Default constructor.
RandomMotion(float speed)
           
 
Method Summary
 Action.ActionResult behave(TextObject to)
          Moves a TextObject randomly.
 
Methods inherited from class net.nexttext.behaviour.AbstractAction
behave, behave, complete, getDisplayName, getRequiredProperties, makeBehaviour, properties, setDisplayName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomMotion

public RandomMotion()
Default constructor. Speed is 4 by default.


RandomMotion

public RandomMotion(float speed)
Method Detail

behave

public Action.ActionResult behave(TextObject to)
Moves a TextObject randomly.

Specified by:
behave in interface Action
Overrides:
behave in class AbstractAction