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
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
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