2021-05-11 14:58:22 -04:00

23 lines
505 B
Python

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()