Exemple #1
0
 def keep_it(self, me):
     thing_all = me.find_thing(self.what)
     for thing in thing_all:
         if thing.location.velocity.is_valid(
         ) and thing.location.velocity.square_mag() > 0.1:
             return Operation("talk", Entity(say=self.call))
     return keep.keep_it(self, me)
Exemple #2
0
 def keep_it(self,me):
     thing_all=me.find_thing(self.what)
     for thing in thing_all:
         if thing.location.velocity.is_valid() and thing.location.velocity.square_mag() > 0.1:
             return Operation("talk", Entity(say=self.call))
     return keep.keep_it(self,me)