uwcse.sim
Class Food

java.lang.Object
  |
  +--uwcse.sim.PacThing
        |
        +--uwcse.sim.Food
All Implemented Interfaces:
Thing

class Food
extends PacThing

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

Constructor Detail

Food

public Food(WorldModel wm,
            int x,
            int y)
Create new food at the given location.
Method Detail

displayOn

public void displayOn(uwcse.graphics.GWindow g)
Display as blue oval.
Overrides:
displayOn in class PacThing

action

public void action()
Does nothing!
Overrides:
action in class PacThing