|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectappletbots.WorldObject
appletbots.Agent
appletbots.RandomAgent
public class RandomAgent
This is an agent that doesn't really react to stimuli in the world, it simply accelerates in a random direction. If you're trying to write an agent and a RandomAgent performs the task better than your agent, you seriously need to take another look at your agent algorithm!
Field Summary |
---|
Fields inherited from class appletbots.Agent |
---|
accelerationVectorColor, maxAcceleration, sight, velocityVectorColor, world |
Fields inherited from class appletbots.WorldObject |
---|
color, mass, maxSpeed, size |
Constructor Summary | |
---|---|
RandomAgent()
|
Method Summary | |
---|---|
void |
observeWorld()
Ignores any world stimuli and sets the acceleration randomly. |
Methods inherited from class appletbots.Agent |
---|
getAcceleration, getMaxAcceleration, getRandomAcceleration, getShowAcceleration, getShowVelocity, getSight, getVectorsToDraw, setAcceleration, setShowAcceleration, setShowVelocity, setWorld |
Methods inherited from class appletbots.WorldObject |
---|
collidedWith, getColor, getMass, getMaxSpeed, getSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomAgent()
Method Detail |
---|
public void observeWorld()
observeWorld
in class Agent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |