Interface IHintOracle

  • All Known Implementing Classes:
    AbstractAI.AbstractAIOracle

    public interface IHintOracle
    Interface for an Oracle used for AI Hints. These methods are to be used in the context of a given legion, on a given master board hex and with a list of recruit options. This is currently implemented by AbstractAI.
    Author:
    Romain Dolbeau
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int biggestAttackerHeight()
      The height of the tallest legion that can attack the legion we consider.
      boolean canReach​(java.lang.String terrain)
      A terrain can be reached by the legion with one move.
      boolean canRecruit​(java.lang.String name)
      A creature with the given name could be recruited.
      int creatureAvailable​(java.lang.String name)
      The number of currently available creatures of the given type.
      int creatureAvailable​(CreatureType creatureType)  
      java.lang.String hexLabel()
      The label of the master board hex under consideration.
    • Method Detail

      • canRecruit

        boolean canRecruit​(java.lang.String name)
        A creature with the given name could be recruited.
      • canReach

        boolean canReach​(java.lang.String terrain)
        A terrain can be reached by the legion with one move.
      • creatureAvailable

        int creatureAvailable​(java.lang.String name)
        The number of currently available creatures of the given type.
      • creatureAvailable

        int creatureAvailable​(CreatureType creatureType)
      • biggestAttackerHeight

        int biggestAttackerHeight()
        The height of the tallest legion that can attack the legion we consider. 0 if none can attack.
      • hexLabel

        java.lang.String hexLabel()
        The label of the master board hex under consideration.