net.nexttext.behaviour
Interface TargetingAction

All Superinterfaces:
Action
All Known Implementing Classes:
Approach, Blow, ChaosPull, Follow, MoveBy, MoveTo, Pull

public interface TargetingAction
extends Action

A TargetingAction is an Action that uses a target.

A common type of TargetingAction is one which moves its object to the target. The purpose of this class is to make it easy to switch around targeted movement in behaviours, by using different TargetingActions.


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.nexttext.behaviour.Action
Action.ActionResult
 
Method Summary
 void setTarget(float x, float y)
          Set a new target for this action.
 void setTarget(float x, float y, float z)
          Set a new target for this action.
 void setTarget(Locatable target)
          Set a new target for this action.
 void setTarget(processing.core.PVector target)
          Set a new target for this action.
 
Methods inherited from interface net.nexttext.behaviour.Action
behave, behave, behave, complete, getRequiredProperties
 

Method Detail

setTarget

void setTarget(Locatable target)
Set a new target for this action.


setTarget

void setTarget(float x,
               float y)
Set a new target for this action.


setTarget

void setTarget(float x,
               float y,
               float z)
Set a new target for this action.


setTarget

void setTarget(processing.core.PVector target)
Set a new target for this action.