Package net.sf.colossus.ai
Class AbstractAI.AbstractAIOracle
java.lang.Object
net.sf.colossus.ai.AbstractAI.AbstractAIOracle
- All Implemented Interfaces:
IHintOracle
- Enclosing class:
AbstractAI
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MasterHex
private final LegionClientSide
private final List
<CreatureType> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractAIOracle
(LegionClientSide legion, MasterHex hex, List<CreatureType> recruits) -
Method Summary
Modifier and TypeMethodDescriptionint
The height of the tallest legion that can attack the legion we consider.boolean
A terrain can be reached by the legion with one move.boolean
canRecruit
(String name) A creature with the given name could be recruited.int
creatureAvailable
(String name) The number of currently available creatures of the given type.int
creatureAvailable
(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:IHintOracle
A terrain can be reached by the legion with one move.- Specified by:
canReach
in interfaceIHintOracle
-
creatureAvailable
Description copied from interface:IHintOracle
The number of currently available creatures of the given type.- Specified by:
creatureAvailable
in interfaceIHintOracle
-
creatureAvailable
- Specified by:
creatureAvailable
in interfaceIHintOracle
-
canRecruit
Description copied from interface:IHintOracle
A creature with the given name could be recruited.- Specified by:
canRecruit
in interfaceIHintOracle
-
hexLabel
Description copied from interface:IHintOracle
The label of the master board hex under consideration.- Specified by:
hexLabel
in interfaceIHintOracle
-
biggestAttackerHeight
public int biggestAttackerHeight()Description copied from interface:IHintOracle
The height of the tallest legion that can attack the legion we consider. 0 if none can attack.- Specified by:
biggestAttackerHeight
in interfaceIHintOracle
-