|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.colossus.ai.AbstractAI.AbstractAIOracle
protected class AbstractAI.AbstractAIOracle
Field Summary | |
---|---|
private java.util.Map<MasterHex,java.util.List<Legion>>[] |
enemyAttackMap
|
private MasterHex |
hex
|
private LegionClientSide |
legion
|
private java.util.List<CreatureType> |
recruits
|
Constructor Summary | |
---|---|
AbstractAI.AbstractAIOracle(LegionClientSide legion,
MasterHex hex,
java.util.List<CreatureType> recruits)
|
Method Summary | |
---|---|
int |
biggestAttackerHeight()
The height of the tallest legion that can attack the legion we consider. |
boolean |
canReach(java.lang.String terrainTypeName)
A terrain can be reached by the legion with one move. |
boolean |
canRecruit(java.lang.String name)
A creature with the given name could be recruited. |
int |
creatureAvailable(CreatureType creatureType)
|
int |
creatureAvailable(java.lang.String name)
The number of currently available creatures of the given type. |
java.lang.String |
hexLabel()
The label of the master board hex under consideration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final LegionClientSide legion
private final MasterHex hex
private final java.util.List<CreatureType> recruits
private java.util.Map<MasterHex,java.util.List<Legion>>[] enemyAttackMap
Constructor Detail |
---|
AbstractAI.AbstractAIOracle(LegionClientSide legion, MasterHex hex, java.util.List<CreatureType> recruits)
Method Detail |
---|
public boolean canReach(java.lang.String terrainTypeName)
IHintOracle
canReach
in interface IHintOracle
public int creatureAvailable(java.lang.String name)
IHintOracle
creatureAvailable
in interface IHintOracle
public int creatureAvailable(CreatureType creatureType)
creatureAvailable
in interface IHintOracle
public boolean canRecruit(java.lang.String name)
IHintOracle
canRecruit
in interface IHintOracle
public java.lang.String hexLabel()
IHintOracle
hexLabel
in interface IHintOracle
public int biggestAttackerHeight()
IHintOracle
biggestAttackerHeight
in interface IHintOracle
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |