|
|
__init__(self,
ID,
agent_layer=None,
inventory=None,
text="",
primary_stats=None,
secondary_stats=None,
**kwargs)
Set the basic values that are shared by all game objects. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
give(self,
item,
actor)
Gives the specified item to the different actor. |
source code
|
|
|
|
hasItem(self,
item_type)
Returns wether an item is present in the players inventory or not |
source code
|
|
|
|
itemCount(self,
item_type="")
Returns number of all items or items specified by item_type the
player has. |
source code
|
|
|
fife.Location
|
|
|
|
run(self,
location)
Makes the PC run to a certain location |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from base.GameObject:
__repr__
Inherited from base.DynamicObject:
__getstate__,
__setstate__,
prepareStateForSaving,
restoreState
Inherited from base.Living:
die
Inherited from base.BaseObject:
trueAttr
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|