vooga.aiEngine.Algorithms
Class EscapeRadius
java.lang.Object
vooga.aiEngine.Algorithms.AbstractAlgorithm
vooga.aiEngine.Algorithms.EscapeRadius
public class EscapeRadius
- extends AbstractAlgorithm
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EscapeRadius
public EscapeRadius()
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