Пример #1
0
 def movement_map_generator(self):
     for event in self.player_movement:
         if self.useTime.get() == 1 and abs(self.getCurrentViewTime() -
                                            event["time"]) > 10:
             continue
         latlon = self.vector3_to_latlon(event["position"])
         yield hm.Point(latlon, )
Пример #2
0
 def damage_map_generator(self):
     for event in self.damage_events:
         if self.useTime.get() == 1 and abs(self.getCurrentViewTime() -
                                            event["time"]) > 10:
             continue
         latlon = self.vector3_to_latlon(event["position"])
         yield hm.Point(latlon, weight=event["amount"])
Пример #3
0
def shapes_generator(count):
    for i in range(count):
        a = random.gauss(10, 1.0)
        b = random.gauss(10, 2.0)
        yield hm.Point(hm.LatLon(a, b), )