Player

class gamelib.Characters.Player(**kwargs)

A class that represent a player controlled by a human. It accepts all the parameters from Character and is a Movable.

Note

If no inventory is passed as parameter a default one is created.

__init__(**kwargs)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(**kwargs) Initialize self.
can_move() Movable implements can_move().
debug_info() Return a string with the list of the attributes and their current value.
display() Print the model WITHOUT carriage return.
has_inventory() This method returns True (a player has an inventory).
overlappable() This method returns false (a player cannot be overlapped).
pickable() This method returns False (a player is obviously not pickable).
size() This is a virtual method that must be implemented in deriving class.
store_position(row, column) Store the BoardItem position for self access.