Class AbstractAI.AbstractAIOracle
java.lang.Object
net.sf.colossus.ai.AbstractAI.AbstractAIOracle
- All Implemented Interfaces:
IHintOracle
- Enclosing class:
AbstractAI
- Author:
- Romain Dolbeau Also contains extracted code from SimpleAI:, Bruce Sherrod, David Ripton, Romain Dolbeau Also contains extracted code from RationalAI:, Bruce Sherrod, David Ripton, Romain Dolbeau, Corwin Joy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MasterHexprivate final LegionClientSideprivate final List<CreatureType> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractAIOracle(LegionClientSide legion, MasterHex hex, List<CreatureType> recruits) -
Method Summary
Modifier and TypeMethodDescriptionintThe height of the tallest legion that can attack the legion we consider.booleanA terrain can be reached by the legion with one move.booleancanRecruit(String name) A creature with the given name could be recruited.intcreatureAvailable(String name) The number of currently available creatures of the given type.intcreatureAvailable(CreatureType creatureType) hexLabel()The label of the master board hex under consideration.
-
Field Details
-
legion
-
hex
-
recruits
-
enemyAttackMap
-
-
Constructor Details
-
AbstractAIOracle
AbstractAIOracle(LegionClientSide legion, MasterHex hex, List<CreatureType> recruits)
-
-
Method Details
-
canReach
Description copied from interface:IHintOracleA terrain can be reached by the legion with one move.- Specified by:
canReachin interfaceIHintOracle
-
creatureAvailable
Description copied from interface:IHintOracleThe number of currently available creatures of the given type.- Specified by:
creatureAvailablein interfaceIHintOracle
-
creatureAvailable
- Specified by:
creatureAvailablein interfaceIHintOracle
-
canRecruit
Description copied from interface:IHintOracleA creature with the given name could be recruited.- Specified by:
canRecruitin interfaceIHintOracle
-
hexLabel
Description copied from interface:IHintOracleThe label of the master board hex under consideration.- Specified by:
hexLabelin interfaceIHintOracle
-
biggestAttackerHeight
public int biggestAttackerHeight()Description copied from interface:IHintOracleThe height of the tallest legion that can attack the legion we consider. 0 if none can attack.- Specified by:
biggestAttackerHeightin interfaceIHintOracle
-