def __init__(self): super(FunctionalChapterContext, self).__init__() self._mustBeUpdated = True self._updating = False self._actions = chapter.ActionsHolder() self._allowedToFight = True self.onBeforeUpdate = Event.Event() self.onAfterUpdate = Event.Event()
def __init__(self, scene): super(FunctionalScene, self).__init__() LOG_DEBUG('New functional scene', scene.getID()) self._scene = scene self._actions = chapter.ActionsHolder() self._itemsOnScene = set() self._pending = [] self._mustBeUpdated = True self._isUpdatedOnce = False self._gui.lock()