|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--uwcse.sim.PacThing
|
+--uwcse.sim.Food
Food is boring, it just sits there, waiting to be eaten by the Man.
| Fields inherited from class uwcse.sim.PacThing |
alive, rand, world, x, y |
| Constructor Summary | |
Food(WorldModel wm,
int x,
int y)
Create new food at the given location. |
|
| Method Summary | |
void |
action()
Does nothing! |
void |
displayOn(uwcse.graphics.GWindow g)
Display as blue oval. |
| Methods inherited from class uwcse.sim.PacThing |
checkNeighbors, getX, getY, interact, isAlive, kill, toString |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public Food(WorldModel wm,
int x,
int y)
| Method Detail |
public void displayOn(uwcse.graphics.GWindow g)
displayOn in class PacThingpublic void action()
action in class PacThing
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||