Class AbstractHintProvider
java.lang.Object
net.sf.colossus.ai.AbstractHintProvider
- All Implemented Interfaces:
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).
-
Nested Class Summary
Nested classes/interfaces inherited from interface IVariantHint
IVariantHint.AIStyle -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreaturesToStrings(List<CreatureType> creatures) protected CreatureTypegetCreatureType(String creatureName) intgetHintedRecruitmentValueOffset(CreatureType creature, List<IVariantHint.AIStyle> styles) No creature gets an offset by default, subclasses can override.protected MasterHexgetMasterHex(String hexLabel) protected MasterBoardTerraingetTerrain(String id) protected VariantMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IVariantHint
getInitialSplitHint, getRecruitHint
-
Field Details
-
variant
-
-
Constructor Details
-
AbstractHintProvider
-
-
Method Details
-
getHintedRecruitmentValueOffset
public int getHintedRecruitmentValueOffset(CreatureType creature, List<IVariantHint.AIStyle> styles) No creature gets an offset by default, subclasses can override.- Specified by:
getHintedRecruitmentValueOffsetin interfaceIVariantHint- Parameters:
creature- Type of the creaturestyles- List of AI styles to hint for- Returns:
- An offset to the Point Value of the creature.
-
getVariant
-
getCreatureType
-
getMasterHex
-
getTerrain
-
creaturesToStrings
-