def __init__(self, data): Entity.__init__(self, data) self.name = "Agent" self.onenter = data['onenter'] self.onleave = data['onleave'] self.attributes = data['start']()
def onEnter(self, actor): Entity.onEnter(self, actor) self.onenter(actor, self)
def onLeave(self, actor): Entity.onLeave(self, actor) self.onleave(actor, self)
def __init__(self, data): Entity.__init__(self, data) self.status = SOLD