Skip to content
Virx edited this page Aug 22, 2020 · 5 revisions

utils/tools.py

find_jump_shot(agent, target, cap_=6)

Returns an instance of jump_shot (see utils/routines.py) if it could find one. If not, it will return None.

  • agent - An instance of VirxERLU. If you're running this from an instance of VirxERLU, pass in self.
  • target - A tuple of Vectors like (left, right)
  • cap_ - The max number of seconds into the future that the method should go. Default & max is 6.

find_any_jump_shot(agent, cap_=3)

Returns an instance of jump_shot (see utils/routines.py) if it could find one. If not, it will return None.

  • agent - An instance of VirxERLU. If you're running this from an instance of VirxERLU, pass in self.
  • cap_ - The max number of seconds into the future that the method should go. Default is 3, max 6.

find_double_jump(agent, target, cap_=6)

Returns an instance of double_jump (see utils/routines.py) if it could find one. If not, it will return None.

  • agent - An instance of VirxERLU. If you're running this from an instance of VirxERLU, pass in self.
  • target - A tuple of Vectors like (left, right)
  • cap_ - The max number of seconds into the future that the method should go. Default & max is 6.

find_any_double_jump(agent, cap_=3)

Returns an instance of double_jump (see utils/routines.py) if it could find one. If not, it will return None.

  • agent - An instance of VirxERLU. If you're running this from an instance of VirxERLU, pass in self.
  • cap_ - The max number of seconds into the future that the method should go. Default is 3, max 6.

find_aerial(agent, target, cap_=6)

Returns an instance of Aerial (see utils/routines.py) if it could find one. If not, it will return None.

  • agent - An instance of VirxERLU. If you're running this from an instance of VirxERLU, pass in self.
  • target - A tuple of Vectors like (left, right)
  • cap_ - The max number of seconds into the future that the method should go. Default & max is 6.

find_any_aerial(agent, cap_=3)

Returns an instance of Aerial (see utils/routines.py) if it could find one. If not, it will return None.

  • agent - An instance of VirxERLU. If you're running this from an instance of VirxERLU, pass in self.
  • cap_ - The max number of seconds into the future that the method should go. Default is 3, max 6.
Clone this wiki locally