def __init__(self, settings): BaseWorld.__init__(self, settings) self.elevation = imread(self.settings['elevationMap'], flatten = True) self.size = self.elevation.shape[0] self.lattice = [[[] for _ in range(self.size)] for _ in range(self.size)] self.agents = [self.generate_agent() for i in range(settings['numberOfAgents'])]
def __init__(self, settings): BaseWorld.__init__(self, settings)