Package net.sf.colossus.ai
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 net.sf.colossus.variant.IVariantHint
IVariantHint.AIStyle
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreaturesToStrings
(List<CreatureType> creatures) protected CreatureType
getCreatureType
(String creatureName) int
getHintedRecruitmentValueOffset
(CreatureType creature, List<IVariantHint.AIStyle> styles) No creature gets an offset by default, subclasses can override.protected MasterHex
getMasterHex
(String hexLabel) protected MasterBoardTerrain
getTerrain
(String id) protected Variant
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.sf.colossus.variant.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:
getHintedRecruitmentValueOffset
in 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
-