Exemplo n.º 1
0
 def __init__(self, cpp):
     Ticks.init_ticks(self, self.tick_interval)
     if self.parent:
         print('initial burn')
         self.send_world(Operation("consume", Entity(consume_type='fire'), to=self.parent))
     else:
         print('no parent')
Exemplo n.º 2
0
 def __init__(self, cpp):
     # At init time not all properties have been applied yet, so we need to send ourselves a "setup"
     # op which will be handled immediately, but with a guarantee that all props are installed.
     self.send_world(Operation("setup", to=self.id))
     Ticks.init_ticks(self, self.tick_interval)
Exemplo n.º 3
0
 def __init__(self, cpp):
     Ticks.init_ticks(self, self.tick_interval)