def __init__(self, Ystart, Xstart, graphics_file, space): self.name = 'Pond' Node.__init__(self, Ystart, Xstart, graphics_file, space) self.vicinity = find_vicinity(self.boundaries)
def __init__(self, Ystart, Xstart, graphics_file, space): self.name = 'Rock' Node.__init__(self, Ystart, Xstart, graphics_file, space) self.vicinity = find_vicinity(self.boundaries) self.resource_qty = 1
def __init__(self, Ystart, Xstart, graphics_file, space): self.name = 'Bush' Node.__init__(self, Ystart, Xstart, graphics_file, space) self.vicinity = find_vicinity(self.boundaries) random.seed() self.resource_qty = random.randint(0, 2)
def __init__(self, Ystart, Xstart, graphics_file, space): self.name = 'Shipbox' self.inventory = Inventory(self.name) Node.__init__(self, Ystart, Xstart, graphics_file, space) self.visible = True self.vicinity = find_vicinity(self.boundaries)