apes
Class EnemyAISimple

java.lang.Object
  extended by apes.AbstractEnemyAI
      extended by apes.EnemyAISimple
All Implemented Interfaces:
IEnemyAI

public class EnemyAISimple
extends AbstractEnemyAI
implements IEnemyAI

this simple ai throws bananas at a random velocity and angle. The velocity and angle are restricted by the values defined in IEnemyAI.


Field Summary
 
Fields inherited from class apes.AbstractEnemyAI
currentThinking, gc, map, MAXBETA, MAXTHINKINGTIME, MAXVELOCITY, MINBETA, MINTHINKINGTIME, MINVELOCITY
 
Constructor Summary
EnemyAISimple(BlockMap map)
           
 
Method Summary
 void calculateBeta()
           
 void calculateVelocity()
           
 void calculateVelocityBeta()
          calculates angles which will be returned by getBeta and getVelocity.
 float getBeta()
          returns an angle that should be used in a throw.
 float getVelocity()
          returns a velocity that should be used in a throw.
 
Methods inherited from class apes.AbstractEnemyAI
executeNextMove, randomBetween
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface apes.IEnemyAI
executeNextMove
 

Constructor Detail

EnemyAISimple

public EnemyAISimple(BlockMap map)
Method Detail

calculateVelocityBeta

public void calculateVelocityBeta()
Description copied from class: AbstractEnemyAI
calculates angles which will be returned by getBeta and getVelocity.

Specified by:
calculateVelocityBeta in class AbstractEnemyAI

getBeta

public float getBeta()
Description copied from class: AbstractEnemyAI
returns an angle that should be used in a throw.

Specified by:
getBeta in class AbstractEnemyAI
Returns:

getVelocity

public float getVelocity()
Description copied from class: AbstractEnemyAI
returns a velocity that should be used in a throw.

Specified by:
getVelocity in class AbstractEnemyAI
Returns:

calculateBeta

public void calculateBeta()

calculateVelocity

public void calculateVelocity()