Trees | Indices | Help |
|
---|
|
object --+ | Player
A Player
object represents a player character controlled
by the real-life program user in a text adventure game. A player object
knows the player's location and possessions.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Creates a new player who is located in the given area and has no possessions.
|
Determines if the player has indicated a desire to quit game.
|
Returns the current location of the player.
|
Attempts to move the player in the given direction. This is successful if there is an exit from the player's current location to the given direction.
|
Tries to pick up the given item. This is successful if the item is located in the player's current location.
|
Determines if the player is carrying the given item.
|
Tries to drop the given item. This is successful if the item is currently in the player's possession.
|
Causes the player to examine the given item. This is successful if the item is currently in the player's possession.
|
Causes the player to list what they are carrying.
|
Causes the player to rest for a short while (this has no real effect in game terms).
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Sep 8 19:19:04 2011 | http://epydoc.sourceforge.net |