예제 #1
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
예제 #2
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