Esempio n. 1
0
 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
Esempio n. 2
0
 def __init__(self, quit_flag):
     self._quit_flag = quit_flag
     
     ListenerBase.__init__(self, CoreEvents.events)
Esempio n. 3
0
 def __init__(self):
     self._instance = self
     ListenerBase.__init__(self, FrameEvents.events)
     
     self.init()
Esempio n. 4
0
 def __init__(self, scene):
     ListenerBase.__init__(self, SceneBaseEvents.events)
     self._scene = scene
Esempio n. 5
0
 def __init__(self, ui):
     ListenerBase.__init__(self, event_types=self.event_types)
     self._ui = ui
Esempio n. 6
0
 def __init__(self): 
     ListenerBase.__init__(self, self.event_types)
     self._rec_events = 0
Esempio n. 7
0
 def __init__(self, renderOps):
     self._render_ops = renderOps
     self._event_type = 'RenderEvent'
     ListenerBase.__init__(self, self._event_type)
Esempio n. 8
0
 def __init__(self, renderer):
     ListenerBase.__init__(self, event_types=self.event_types)
     self._renderer = renderer