def __init__(self, username="", **kwargs): """ Create a player. This method calls super(). """ super(Player, self).__init__(**kwargs) self.username = username self.inventory = Equipment() self.equipped = 0
def setUp(self): self.i = Equipment()
def __init__(self, username="", **kwargs): """ Create a player. This method calls super(). """ super(Player, self).__init__(**kwargs) self.username = username self.inventory = Equipment() self.equipped = 0
def setUp(self): self.i = Equipment()