Beispiel #1
0
 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'])]
Beispiel #2
0
	def __init__(self, settings):
		BaseWorld.__init__(self, settings)