예제 #1
0
파일: reactor.py 프로젝트: antoinevg/phail
 def swallow(self, body):
   #print 'Reactor swallowing a body:', body.__class__
   if body.__class__ is Rotor: # TODO ugly hack
     print "create_rotor"
     self.rotor = self.create_rotor(0, 0, 5, 150)
   else:
     Plato.swallow(self, body)
예제 #2
0
파일: newton.py 프로젝트: antoinevg/phail
 def swallow(self, body):
   print 'swallowing a body:', body.__class__
   body.set_newton(self)
   Plato.swallow(self, body)