|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectai.worlds.Obj
ai.worlds.wumpus.Pit
A pit that appears in a wumpus world.
| Field Summary |
| Fields inherited from class ai.worlds.Obj |
alive, bump, container, heading, loc, name, sound |
| Constructor Summary | |
Pit()
|
|
Pit(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 |
public Pit()
public Pit(Location location)
| Method Detail |
public void draw(java.awt.Graphics g,
java.awt.Point p,
int cellSize)
Obj
draw in class Objg - 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 | ||||||||||