Ejemplo n.º 1
0
    def _move_hero_to(self, destination, break_at=None):
        from the_tale.game.actions.prototypes import ActionMoveToPrototype

        if self.hero.position.is_walking:
            self._move_hero_near(destination=None, back=True)
            return

        ActionMoveToPrototype.create(hero=self.hero, destination=destination, break_at=break_at)
Ejemplo n.º 2
0
    def _move_hero_to(self, destination, break_at=None):
        from the_tale.game.actions.prototypes import ActionMoveToPrototype

        if self.hero.position.is_walking:
            self._move_hero_near(destination=None, back=True)
            return

        ActionMoveToPrototype.create(hero=self.hero,
                                     destination=destination,
                                     break_at=break_at)
 def process_action(self):
     ActionMoveToPrototype.create(hero=self.hero, destination=place)
Ejemplo n.º 4
0
 def process_action(self):
     ActionMoveToPrototype.create(hero=self.hero, destination=place)