예제 #1
0
파일: tasks.py 프로젝트: tredfern/terralien
 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())
예제 #2
0
 def update(self, dt):
     for c in models.characters:
         c.update(models.get_map())
     models.event_log.next_turn()