uwcse.sim
Class Wall

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

class Wall
extends PacThing

Walls just sit there, getting in the way of the Man.


Fields inherited from class uwcse.sim.PacThing
alive, rand, world, x, y
 
Constructor Summary
Wall(WorldModel wm, int x, int y)
          Create a new wall at the given location.
 
Method Summary
 void action()
          Does nothing!
 void displayOn(uwcse.graphics.GWindow g)
          Display as black rectangle.
 
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

Wall

public Wall(WorldModel wm,
            int x,
            int y)
Create a new wall at the given location.
Method Detail

displayOn

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

action

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