Interface IInteractiveWorldTacticLib<Location>

All Known Implementing Classes:
TacticLib

public interface IInteractiveWorldTacticLib<Location>
This interface lists/suggests some commonly useful tactics for an agent to go about in an interactive world.
Author:
Wish
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Return true when in the current state there is no more place to explore.
    explore​(Location heuristicLocation)
    Construct a tactic to auto-explore the world.
    interactTac​(String entityId)
    Construct a tactic to interact with a world-entity with the given id.
    navigateToTac​(String entityId)
    Construct a tactic to auto-navigate to a world-entity with the given id.
    navigateToTac​(Location heuristicLocation)
    Construct a tactic to auto-navigate to the given location.
  • Method Details

    • interactTac

      Tactic interactTac(String entityId)
      Construct a tactic to interact with a world-entity with the given id. It is enabled when the exists in the current state, and if interacting with it is possible. Else the tactic is not enabled.
    • explore

      Tactic explore(Location heuristicLocation)
      Construct a tactic to auto-explore the world. It is enabled when there is a place to explore, and else it is disabled. If a heuristic-location is given, the exploration is driven towards that location.
    • explorationExhausted

      boolean explorationExhausted(SimpleState state)
      Return true when in the current state there is no more place to explore.