public class Player extends Object
Constructor and Description |
---|
Player()
Constructor for objects of class Player
|
Modifier and Type | Method and Description |
---|---|
Room |
getCurrentRoom()
Return the current room for this player.
|
void |
setCurrentRoom(Room room)
Set the current room for this player.
|
void |
walk(String direction)
Try to walk in a given direction.
|
public Room getCurrentRoom()
public void setCurrentRoom(Room room)
room
- The room to move topublic void walk(String direction)
direction
- Which way to walk