appletbots
Class RandomAgent

java.lang.Object
  extended by appletbots.WorldObject
      extended by appletbots.Agent
          extended by appletbots.RandomAgent

public class RandomAgent
extends Agent

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!

Author:
Erik Rasmussen

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

RandomAgent

public RandomAgent()
Method Detail

observeWorld

public void observeWorld()
Ignores any world stimuli and sets the acceleration randomly.

Specified by:
observeWorld in class Agent