kaos.robots.naimtsimulator
Class Simulator
java.lang.Object
kaos.robots.naimtsimulator.Simulator
- All Implemented Interfaces:
- java.lang.Runnable
public class Simulator
- extends java.lang.Object
- implements java.lang.Runnable
Field Summary |
static int |
SLEEP
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SLEEP
public static int SLEEP
Simulator
public Simulator()
getKAoSRobots
public java.util.List getKAoSRobots()
- Returns the list of KAoSRobots associated with the Bots in this simulation.
getObjects
public java.util.Set getObjects()
addObject
public void addObject(SimObject o)
removeObject
public void removeObject(SimObject o)
step
public void step()
pause
public void pause()
- Thread continues to run, but objects don't move.
restart
public void restart()
stop
public void stop()
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
dropBot
public void dropBot(java.lang.String name,
double x,
double y)
dropMine
public void dropMine(double x,
double y,
double width,
double height)
dropBenign
public void dropBenign(double x,
double y,
double width,
double height)