Esempio n. 1
0
 def leaving_play(self):
     if self.is_creature:
         self.remove_creature_role()
     dispatcher.disconnect(self.add_counter,
                           signal=CounterAddedEvent(),
                           sender=self.gamecard)
     dispatcher.disconnect(self.remove_counter,
                           signal=CounterRemovedEvent(),
                           sender=self.gamecard)
     dispatcher.disconnect(self.type_modified,
                           signal=TypesModifiedEvent(),
                           sender=self.gamecard)
Esempio n. 2
0
 def remove_creature_role(self):
     self.is_creature = False
     self.draw = self.draw_permanent
     dispatcher.disconnect(self.change_value, signal=TimestepEvent())
Esempio n. 3
0
 def wrap_(**kw):
     if robustApply(condition, **kw):
         func()
         dispatcher.disconnect(wrap_, signal=event, weak=False)
Esempio n. 4
0
 def disable_sound(self):
     if self.sound_on:
         self.sound_on = False
         for sound, event in self.connections:
             dispatcher.disconnect(sound.vplay, signal=event)
Esempio n. 5
0
 def teardown(source):
     source._echo_controller = None
     dispatcher.disconnect(source._echo_func, signal=ControllerChanged(), weak=False)
Esempio n. 6
0
 def disconnect(self):
     return
     for sound, event in self.connections:
         dispatcher.disconnect(sound.play, signal=event)
Esempio n. 7
0
 def wrap_(**kw):
     if robustApply(condition, **kw):
         func()
         dispatcher.disconnect(wrap_, signal=event, weak=False)
Esempio n. 8
0
 def leaving_play(self):
     if self.is_creature:
         self.remove_creature_role()
     dispatcher.disconnect(self.add_counter, signal=CounterAddedEvent(), sender=self.gamecard)
     dispatcher.disconnect(self.remove_counter, signal=CounterRemovedEvent(), sender=self.gamecard)
     dispatcher.disconnect(self.type_modified, signal=TypesModifiedEvent(), sender=self.gamecard)
Esempio n. 9
0
 def remove_creature_role(self):
     self.is_creature = False
     self.draw = self.draw_permanent
     dispatcher.disconnect(self.change_value, signal=TimestepEvent())
Esempio n. 10
0
 def disconnect(self):
     return
     for sound, event in self.connections:
         dispatcher.disconnect(sound.play, signal=event)
Esempio n. 11
0
 def teardown(source):
     source._echo_controller = None
     dispatcher.disconnect(source._echo_func,
                           signal=ControllerChanged(),
                           weak=False)