Ejemplo n.º 1
0
 def __init__(self, abilities):
     """Set up basic stats for any level 1 character that don't depend on
     class or species"""
     # TODO: Refactor for dependency injection
     Observable.__init__(self)
     self.condition_track = ConditionTrack()
     self.dark_side_points = 0
     self.destiny_points = 1
     self.force_points = 5
     self.state = NewState()
     self.abilities = abilities
Ejemplo n.º 2
0
 def test_callback_called(self):
     self.callback_called = False
     subject = Observable()
     subject.subscribe(self.callback, "test_event")
     subject.notify("test_event")
     assert self.callback_called