ai.worlds.vacuum
Class Dirt

java.lang.Object
  extended byai.worlds.Obj
      extended byai.worlds.vacuum.Dirt

public class Dirt
extends Obj

Dirt that appears in the Vacuum 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
Dirt()
           
 
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

Dirt

public Dirt()
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.