|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcs1705.adventure.Player
This class represents a player in an adventure game. Each player has a current location.
| Constructor Summary | |
Player()
Constructor for objects of class Player |
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Player()
| Method Detail |
public Room getCurrentRoom()
public void setCurrentRoom(Room room)
public void walk(String direction)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||