intention.py 547B

1234567891011121314151617181920
  1. # coding: utf-8
  2. import typing
  3. from synergine2.simulation import Intention
  4. class MoveToIntention(Intention):
  5. def __init__(
  6. self,
  7. move_to: typing.Tuple[int, int],
  8. start_time: float,
  9. gui_action: typing.Any,
  10. ) -> None:
  11. self.move_to = move_to
  12. self.path = [] # type: typing.List[typing.Tuple[int, int]]
  13. self.path_progression = -1 # type: int
  14. self.last_intention_time = start_time
  15. self.just_reach = False
  16. self.initial = True
  17. self.gui_action = gui_action