|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.nexttext.behaviour.AbstractAction net.nexttext.behaviour.control.Delay
public class Delay
Delays a given action for a number of seconds.
Timer
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.nexttext.behaviour.Action |
---|
Action.ActionResult |
Constructor Summary | |
---|---|
Delay(Action action,
float duration)
Creates a Delay for the given action. |
Method Summary | |
---|---|
Action.ActionResult |
behave(TextObject to)
Applies the delay. |
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 |
---|
public Delay(Action action, float duration)
duration
- In secondsMethod Detail |
---|
public Action.ActionResult behave(TextObject to)
During the delay the ActionResult will set neither event nor complete. Once the delay is complete, the result of the delayed Action will be returned.
behave
in interface Action
behave
in class AbstractAction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |