Пример #1
0
 def react(self, world, basis):
     actions = []
     if (basis.sense and basis.direct == '@message'
             and basis.modality == 'sight'):
         sigh = Behave('sigh', basis.agent)
         sigh.final = True
         actions.append(sigh)
     return actions
Пример #2
0
 def react(self, world, basis):
     actions = []
     if (basis.sense and basis.direct == '@message' and
         basis.modality == 'sight'):
         sigh =  Behave('sigh', basis.agent)
         sigh.final = True
         actions.append(sigh)
     return actions
Пример #3
0
 def act(self, command_map, concept):
     actions = []
     if (self.distance == 0 and concept.ticks > 80 and
         str(concept.item['@visitor'].place(concept)) == '@plaza_center'):
         smile = Behave('smile', '@visitor')
         smile.final = True
         smile.before = """[@visitor/s] [turn/v] and [see/v] [@visitor's] 
                        friend"""
         actions.append(smile)
     return actions
Пример #4
0
 def act(self, command_map, concept):
     actions = []
     if (self.distance == 0 and concept.ticks > 80 and str(
             concept.item['@visitor'].place(concept)) == '@plaza_center'):
         smile = Behave('smile', '@visitor')
         smile.final = True
         smile.before = """[@visitor/s] [turn/v] and [see/v] [@visitor's] 
                        friend"""
         actions.append(smile)
     return actions