class WorldObj extends java.lang.Object implements World
Modifier and Type | Field and Description |
---|---|
private int |
maxx |
private int |
maxy |
private Visible[][] |
space |
private TimeServer |
time |
Constructor and Description |
---|
WorldObj(int maxx,
int maxy) |
Modifier and Type | Method and Description |
---|---|
long |
currentTime() |
void |
enqueue(long t,
Agent a) |
Visible |
get(int x,
int y) |
int |
maxx() |
int |
maxy() |
void |
run(int d) |
boolean |
set(int x,
int y,
Visible a) |
private final int maxx
private final int maxy
private final TimeServer time
WorldObj(int maxx, int maxy)
public long currentTime()
currentTime
in interface TimeServer
public void enqueue(long t, Agent a)
enqueue
in interface TimeServer
public void run(int d)
run
in interface TimeServer