def __init__(self, actor, target): self._actor = actor actor.current_task = self self._goal = target self.path = ai.pathing.find_path(actor.position, self._goal, models.get_map())
def update(self, dt): for c in models.characters: c.update(models.get_map()) models.event_log.next_turn()