|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uwcse.sim.PacThing | +--uwcse.sim.MovingThing | +--uwcse.sim.Man
The pac man goes around, eating food. It is controlled by a controller that turns keystrokes into directions of travel.
Field Summary | |
(package private) boolean |
mouthOpen
|
Fields inherited from class uwcse.sim.MovingThing |
direction |
Fields inherited from class uwcse.sim.PacThing |
alive, rand, world, x, y |
Constructor Summary | |
Man(WorldModel wm,
int x,
int y)
|
Method Summary | |
void |
displayOn(uwcse.graphics.GWindow g)
Displays as an oval, with its mouth open or closed. |
void |
interact(PacThing t)
Kills food. |
Methods inherited from class uwcse.sim.MovingThing |
|
Methods inherited from class uwcse.sim.PacThing |
checkNeighbors, getX, getY, isAlive, kill, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
boolean mouthOpen
Constructor Detail |
public Man(WorldModel wm, int x, int y)
Method Detail |
public void displayOn(uwcse.graphics.GWindow g)
displayOn
in class MovingThing
public void interact(PacThing t)
interact
in class MovingThing
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |