Пример #1
0
 def __init__(self, engine, handle):
     """Constructor. Use handle, connect to player if needed"""
     EngineObject.__init__(self, engine)
     self.handle = handle
     self.tick_count = 0
     self.material = self.material
     self.size = self.size
     self.motion_state = None
Пример #2
0
 def __init__(self, local_options):
     """Contructor"""
     logging.info("Initializing engine.")
     r = random.Random()
     r.seed(time.time())
     self.execution_handle = abs(int(r.getrandbits(32)))
     self.local_options = local_options
     self.state = self.State.RELEASED
     EngineObject.__init__(self, self)
Пример #3
0
 def __init__(self, engine):
     """Constructor"""
     EngineObject.__init__(self, engine)