vooga.aiEngine.Algorithms
Class PongAlgorithm

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

public class PongAlgorithm
extends AbstractAlgorithm

Tracks the x location of an object and attempts to match x-position by firing associated events.

Author:
Grant Warman

Constructor Summary
PongAlgorithm()
           
 
Method Summary
 void perform(java.lang.Object... args)
          Performs the track height algorithm, assuming the correct parameters are presented
 
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

PongAlgorithm

public PongAlgorithm()
Method Detail

perform

public void perform(java.lang.Object... args)
             throws java.lang.RuntimeException
Performs the track height algorithm, assuming the correct parameters are presented

Specified by:
perform in class AbstractAlgorithm
Parameters:
eventFirer -
ai -
target -
movedown -
moveup -
Throws:
java.lang.RuntimeException