def __init__(self, parent_node=None,speed=10,adj_speed=5,angle_speed=120): Script.__init__(self, name='MoveController', parent_node=parent_node) ListenerBase.__init__(self, event_types=self.event_types) self._param_types = {"speed":ScriptParamTypes.FLOAT, "adj_speed":ScriptParamTypes.FLOAT, "angle_speed": ScriptParamTypes.FLOAT } self._speed = speed self._angle_speed = angle_speed self._adj_speed = adj_speed self._final_speed = speed self._mouse_over_ui = False self._unlock_mouse = False
def __init__(self, quit_flag): self._quit_flag = quit_flag ListenerBase.__init__(self, CoreEvents.events)
def __init__(self): self._instance = self ListenerBase.__init__(self, FrameEvents.events) self.init()
def __init__(self, scene): ListenerBase.__init__(self, SceneBaseEvents.events) self._scene = scene
def __init__(self, ui): ListenerBase.__init__(self, event_types=self.event_types) self._ui = ui
def __init__(self): ListenerBase.__init__(self, self.event_types) self._rec_events = 0
def __init__(self, renderOps): self._render_ops = renderOps self._event_type = 'RenderEvent' ListenerBase.__init__(self, self._event_type)
def __init__(self, renderer): ListenerBase.__init__(self, event_types=self.event_types) self._renderer = renderer