|
__init__(self,
starting_area)
Creates a new player who is located in the given area and has no
possessions. |
|
|
boolean
|
has_quit(self)
Determines if the player has indicated a desire to quit game. |
|
|
area object
|
get_location(self)
Returns the current location of the player. |
|
|
string
|
go(self,
direction)
Attempts to move the player in the given direction. |
|
|
string
|
get(self,
item_name)
Tries to pick up the given item. |
|
|
boolean
|
has(self,
item_name)
Determines if the player is carrying the given item. |
|
|
string
|
drop(self,
item_name)
Tries to drop the given item. |
|
|
string
|
examine(self,
item_name)
Causes the player to examine the given item. |
|
|
string
|
make_inventory(self)
Causes the player to list what they are carrying. |
|
|
string
|
rest(self)
Causes the player to rest for a short while (this has no real effect
in game terms). |
|
|
|
quit(self)
Signals that the player wants to quit the game. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|