public class Player
extends java.lang.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.
|
boolean |
hasQuit()
Returns true if the player has quit the game.
|
void |
setCurrentRoom(Room room)
Set the current room for this player.
|
void |
setHasQuit(boolean b)
Set the hasQuit attribute to the specified value.
|
public Room getCurrentRoom()
public void setCurrentRoom(Room room)
room
- The room to move topublic boolean hasQuit()
public void setHasQuit(boolean b)
b
- the desired value of the hasQuit attribute