Class AbstractHintProvider

  • All Implemented Interfaces:
    IVariantHint

    public abstract class AbstractHintProvider
    extends java.lang.Object
    implements IVariantHint
    Abstract base class for variant-specific recruitment hinting. TODO: add implementations for the other IVariantHint methods, so this class could be the default behaviour for new variants (thus getting rid of the requirement that each variant has to compile Java code).
    • Field Detail

      • variant

        private final Variant variant
    • Constructor Detail

      • AbstractHintProvider

        public AbstractHintProvider​(Variant variant)
    • Method Detail

      • getHintedRecruitmentValueOffset

        public int getHintedRecruitmentValueOffset​(CreatureType creature,
                                                   java.util.List<IVariantHint.AIStyle> styles)
        No creature gets an offset by default, subclasses can override.
        Specified by:
        getHintedRecruitmentValueOffset in interface IVariantHint
        Parameters:
        creature - Type of the creature
        styles - List of AI styles to hint for
        Returns:
        An offset to the Point Value of the creature.
      • getVariant

        protected Variant getVariant()
      • getCreatureType

        protected CreatureType getCreatureType​(java.lang.String creatureName)
      • getMasterHex

        protected MasterHex getMasterHex​(java.lang.String hexLabel)
      • creaturesToStrings

        public static java.util.List<java.lang.String> creaturesToStrings​(java.util.List<CreatureType> creatures)