|
||||||||||
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.standard.Follow
public class Follow
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.nexttext.behaviour.Action |
---|
Action.ActionResult |
Constructor Summary | |
---|---|
Follow(Locatable followed)
Follow the motion of an object. |
|
Follow(processing.core.PVector vector)
Follow the motion of a vector point. |
Method Summary | |
---|---|
Action.ActionResult |
behave(TextObject to)
Apply the action to a TextObject. |
void |
setTarget(float x,
float y)
Sets a target to approach. |
void |
setTarget(float x,
float y,
float z)
Sets a target to approach. |
void |
setTarget(Locatable target)
Set the followed object. |
void |
setTarget(processing.core.PVector target)
Sets a target to approach. |
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 |
Methods inherited from interface net.nexttext.behaviour.Action |
---|
behave, behave, complete, getRequiredProperties |
Constructor Detail |
---|
public Follow(Locatable followed)
followed
- the followed objectpublic Follow(processing.core.PVector vector)
vector
- point to followMethod Detail |
---|
public void setTarget(Locatable target)
setTarget
in interface TargetingAction
target
- the followed objectpublic void setTarget(float x, float y)
setTarget
in interface TargetingAction
public void setTarget(float x, float y, float z)
setTarget
in interface TargetingAction
public void setTarget(processing.core.PVector target)
setTarget
in interface TargetingAction
public Action.ActionResult behave(TextObject to)
behave
in interface Action
behave
in class AbstractAction
to
- the affected text object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |