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