ai.worlds
Class AgentBody

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

public class AgentBody
extends Obj

An agent's body.

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

Field Summary
 boolean grabbed
           
 
Fields inherited from class ai.worlds.Obj
alive, bump, container, heading, loc, name, sound
 
Constructor Summary
AgentBody()
           
 
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
 

Field Detail

grabbed

public boolean grabbed
Constructor Detail

AgentBody

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