ai.worlds.wumpus
Class Pit

java.lang.Object
  extended byai.worlds.Obj
      extended byai.worlds.wumpus.Pit

public class Pit
extends Obj

A pit that appears in a wumpus world.

Author:
Jill Zimmerman -- jill.zimmerman@goucher.edu

Field Summary
 
Fields inherited from class ai.worlds.Obj
alive, bump, container, heading, loc, name, sound
 
Constructor Summary
Pit()
           
Pit(Location location)
           
 
Method Summary
 void draw(java.awt.Graphics g, java.awt.Point p, int cellSize)
          Draw the object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pit

public Pit()

Pit

public Pit(Location location)
Method Detail

draw

public void draw(java.awt.Graphics g,
                 java.awt.Point p,
                 int cellSize)
Description copied from class: Obj
Draw the object.

Specified by:
draw in class Obj
Parameters:
g - is the graphics object.
p - is the position to draw.
cellSize - is the size of the cell in which it is drawn.