Madra_smieciarka/classes/Household.py

41 lines
915 B
Python
Raw Normal View History

class Household:
2024-03-19 18:52:31 +01:00
def __init__(self):
self.id: int = 0
self.image: object = None
self.position: tuple = None
self.neighbours: list = []
self.garbage: object = None
def setNeighbours(self, neighbours):
self.neighbours = neighbours
def addNeighbour(self, neighbour):
self.neighbours.append(neighbour)
def getNeighbours(self):
return self.neighbours
2024-03-19 18:52:31 +01:00
def setPosition(self, position: tuple):
self.position = position
def getPosition(self):
return self.position
2024-03-19 18:52:31 +01:00
def setImage(self, image: object):
self.image = image
def getImage(self):
return self.image
2024-03-19 18:52:31 +01:00
def setId(self, newID: int):
self.id = newID
def getId(self):
2024-03-19 18:52:31 +01:00
return self.id
def setGarbage(self, garbage: object):
self.garbage = garbage
def getGarbage(self):
return self.garbage