from obj.inventory import Inventory class Player: def __init__(self, name, location): self.name = name self.location = location self.inventory = Inventory() def getName(self): return self.name def setName(self, name): self.name = name def getLocation(self): return self.location def addItem(self, item, quantity): self.inventory.addItem(item, quantity) def printInventory(self): self.inventory.printInventory()