vooga.aiEngine.Algorithms
Class EscapeRadius

java.lang.Object
  extended by vooga.aiEngine.Algorithms.AbstractAlgorithm
      extended by vooga.aiEngine.Algorithms.EscapeRadius

public class EscapeRadius
extends AbstractAlgorithm


Constructor Summary
EscapeRadius()
           
 
Method Summary
 void perform(GameRelatedObject eventFirer, GameItem ai, GameItem target, java.util.EventObject moveup, java.util.EventObject movedown, java.util.EventObject moveleft, java.util.EventObject moveright, java.lang.Integer radius)
           
 void perform(java.lang.Object... args)
          Performs an arbitrary algorithm with arbitrary parameters.
 
Methods inherited from class vooga.aiEngine.Algorithms.AbstractAlgorithm
performWithDelay, setDelay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EscapeRadius

public EscapeRadius()
Method Detail

perform

public void perform(GameRelatedObject eventFirer,
                    GameItem ai,
                    GameItem target,
                    java.util.EventObject moveup,
                    java.util.EventObject movedown,
                    java.util.EventObject moveleft,
                    java.util.EventObject moveright,
                    java.lang.Integer radius)

perform

public void perform(java.lang.Object... args)
             throws java.lang.RuntimeException
Description copied from class: AbstractAlgorithm
Performs an arbitrary algorithm with arbitrary parameters. Defines the basic parameters of an algorithm. Algorithms generally require a number of EventObjects which the algorithm fires according to certain specifications.

Specified by:
perform in class AbstractAlgorithm
Throws:
java.lang.RuntimeException