|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ai.worlds.Obj
A generic object that is contained in an environment.
Field Summary | |
boolean |
alive
Is the object alive? |
boolean |
bump
Status of bumps to the object. |
java.util.Vector |
container
Some objects may contain other objects. |
Location |
heading
The heading of the object. |
Location |
loc
The location of the object. |
java.lang.String |
name
The name of the object. |
boolean |
sound
Status of sounds from the object. |
Constructor Summary | |
Obj()
|
Method Summary | |
abstract 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 |
public java.lang.String name
public boolean alive
public Location loc
public Location heading
public boolean bump
public java.util.Vector container
public boolean sound
Constructor Detail |
public Obj()
Method Detail |
public abstract void draw(java.awt.Graphics g, java.awt.Point p, int cellSize)
g
- is the graphics object.p
- is the position to draw.cellSize
- is the size of the cell in which it is drawn.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |