ai.worlds.wumpus
Class Gold

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

public class Gold
extends Obj

Gold 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
Gold()
           
Gold(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

Gold

public Gold()

Gold

public Gold(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.