|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uwcse.sim.WorldModel | +--uwcse.sim.PacMan
The driver for the PacMan simulation. Adds a bunch of food, some walls, a man, and a monster and then runs the simulation. FIX: this simulation more or less works, but is very touchy with respect to the cellsize and the size of the objects in the simulation. It would be nice to clean this up, but I'm not sure of a nice way to do it within the given framework. This sim also demos the GWindowEvent system.
Fields inherited from class uwcse.sim.WorldModel |
cells, cellSize, count, DEFAULT_CELL_SIZE, EAST, NORTH, NORTHEAST, NORTHWEST, nursery, sleepTime, SOUTH, SOUTHEAST, SOUTHWEST, views, WEST |
Constructor Summary | |
PacMan()
|
Method Summary | |
void |
init()
Add food and walls, one man and one monster. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class uwcse.sim.WorldModel |
add, addView, birth, doTurn, getThings, getThings, getThings, getThings, go, go, map, notifyViews, remove, setSleepTime, size, toString |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public PacMan()
Method Detail |
public void init()
init
in class WorldModel
public static void main(java.lang.String[] args)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |