|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapes.AbstractEnemyAI
apes.EnemyAISimple
public class EnemyAISimple
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 |
---|
public EnemyAISimple(BlockMap map)
Method Detail |
---|
public void calculateVelocityBeta()
AbstractEnemyAI
calculateVelocityBeta
in class AbstractEnemyAI
public float getBeta()
AbstractEnemyAI
getBeta
in class AbstractEnemyAI
public float getVelocity()
AbstractEnemyAI
getVelocity
in class AbstractEnemyAI
public void calculateBeta()
public void calculateVelocity()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |