Modifier and Type | Method and Description |
---|---|
Room |
Player.getCurrentRoom()
Return the current room for this player.
|
Room |
Room.getExit(java.lang.String direction)
Return the room that is reached if we go from this room in direction
"direction".
|
Modifier and Type | Method and Description |
---|---|
void |
Player.setCurrentRoom(Room room)
Set the current room for this player.
|
void |
Room.setExit(java.lang.String direction,
Room neighbor)
Define an exit from this room.
|