uwcse.sim
Class PacMan

java.lang.Object
  |
  +--uwcse.sim.WorldModel
        |
        +--uwcse.sim.PacMan

public class PacMan
extends WorldModel

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.

Version:
$Id: PacMan.java,v 1.5 2001/10/01 03:12:00 chambers Exp $

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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PacMan

public PacMan()
Method Detail

init

public void init()
Add food and walls, one man and one monster.
Overrides:
init in class WorldModel

main

public static void main(java.lang.String[] args)