|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--Thing
|
+--Key
Write a description of class Key here.
| Fields inherited from class Thing |
description, name, things, visible |
| Constructor Summary | |
Key(java.lang.String name)
Constructor for objects of class Key. |
|
| Method Summary | |
java.lang.String |
use(Player player,
Room room)
Lock or unlock the house door, if the Player is outside |
| Methods inherited from class Thing |
getDescription, getThing, getVisible, setDescription, setVisible, toString |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public Key(java.lang.String name)
| Method Detail |
public java.lang.String use(Player player,
Room room)
use in class Thingplayer - A reference to the player (not used)room - A reference to the player's current location
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||