Example #1
0
 def register_to(self, manager):
     Processor.register_to(self, manager)
     self.manager.environment['weather'] = self.current_weather
Example #2
0
 def __init__(self, initial_weather, cycle_frequence):
     Processor.__init__(self)
     self.current_weather = initial_weather
     self.cycle_frequence = cycle_frequence
     self.current_cycle = 0
Example #3
0
 def __init__(self, frequence=1, max_to_kill=1):
     Processor.__init__(self)
     self.frequence = frequence
     self.cycle = 0
     self.max_to_kill = max_to_kill
Example #4
0
 def __init__(self, initial_weather, cycle_frequence):
     Processor.__init__(self)
     self.current_weather = initial_weather
     self.cycle_frequence = cycle_frequence
     self.current_cycle = 0
Example #5
0
 def register_to(self, manager):
     Processor.register_to(self, manager)
     self.manager.environment['weather'] = self.current_weather
Example #6
0
 def __init__(self, frequence=1, max_to_kill=1):
     Processor.__init__(self)
     self.frequence = frequence
     self.cycle = 0
     self.max_to_kill = max_to_kill
Example #7
0
 def __init__(self, screen_size):
     Processor.__init__(self)
     self.screen_width, self.screen_height = screen_size