Class SquiggleBallSim


public class SquiggleBallSim
extends AttractorSim
implements SimulatedObject

implements a moving attractor for JavaBotSim simulation.

Copyright (c)2000 Tucker Balch

Field Summary
static boolean DEBUG
Fields inherited from class
all_objects, background, bottom, DEBUG, deposited, foreground, left, picked_up, position, RADIUS, rando, right, seed, top, unique_id, visionclass
Constructor Summary
Method Summary
 void takeStep(long time_increment, SimulatedObject[] all_objs)
          Take a simulated step;
Methods inherited from class
checkCollision, checkCollision, clearTrail, draw, draw, drawIcon, drawID, drawState, drawTrail, getCenter, getClosestPoint, getID, getPosition, getVisionClass, init, isObstacle, isPickupable, isPushable, pickUp, push, putDown, quit, receive, setID, setTrailLength, setVisionClass
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


public static final boolean DEBUG
Constructor Detail


public SquiggleBallSim()
Method Detail


public void takeStep(long time_increment,
                     SimulatedObject[] all_objs)
Take a simulated step;
Specified by:
takeStep in interface SimulatedObject
takeStep in class AttractorSim
Tags copied from interface: SimulatedObject
time_increment - how much time has elapsed since the last call.
all_objects - the other objects in the simulation.