ai.worlds
Class Wall

java.lang.Object
  extended byai.worlds.Obj
      extended byai.worlds.Wall

public class Wall
extends Obj

A wall object inside a GridEnvironment.

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
Wall()
           
 
Method Summary
 void draw(java.awt.Graphics g, java.awt.Point p, int cellSize)
          Draw the wall.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Wall

public Wall()
Method Detail

draw

public void draw(java.awt.Graphics g,
                 java.awt.Point p,
                 int cellSize)
Draw the wall.

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.