Madra_smieciarka/classes/Junkyard.py

18 lines
370 B
Python

class Junkyard:
def __init__(self):
self.id = 0
self.position = (1400, 500)
self.neighbours = []
def getPosition(self):
return self.position
def addNeighbour(self, neighbour):
self.neighbours.append(neighbour)
def getNeighbours(self):
return self.neighbours
def getId(self):
return self.id