Package net.sf.colossus.ai.objectives
Class AbstractObjectiveHelper.AllThereIsToKnowAboutYourCreature
java.lang.Object
net.sf.colossus.ai.objectives.AbstractObjectiveHelper.AllThereIsToKnowAboutYourCreature
- Enclosing class:
AbstractObjectiveHelper
Helper class holding some knowledge about a given creature.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final CreatureType
The best possible recruit (by points value) this creature could someday recruit (anywhere)(package private) final Creature
The creature this knowledged is about(package private) final boolean
Whether we can still recruit here or we are already out of luck (always true if we can't recruit here...)(package private) final boolean
Whether it's immediately useful to kill, i.e.(package private) final boolean
Whether we can still recruit here with no room to spare (always true if we can't recruit here...)(package private) final int
How many are left in the Caretaker's stack(package private) final int
How many we need in the current terrain to recruit (BIGNUM if we can't recruit)(package private) final boolean
Whether this creature type appears in this stack, and in this stack only(package private) final int
How many creature of the same type the player owns (in all its Legion)(package private) final Set
<CreatureType> What can this creature recruits(package private) final int
How many creature of the same type are in this legion (including this one)(package private) final boolean
Whether the current Legion already has something better in the recruit tree (of this terrain) -
Constructor Summary
ConstructorsConstructorDescriptionAllThereIsToKnowAboutYourCreature
(AbstractAI ai, Creature creature, Legion legion) -
Method Summary
-
Field Details
-
creature
The creature this knowledged is about -
playerNumber
final int playerNumberHow many creature of the same type the player owns (in all its Legion) -
stackNumber
final int stackNumberHow many creature of the same type are in this legion (including this one) -
recruits
What can this creature recruits -
bestRecruit
The best possible recruit (by points value) this creature could someday recruit (anywhere) -
numberNeededHere
final int numberNeededHereHow many we need in the current terrain to recruit (BIGNUM if we can't recruit) -
thisStackHasBetter
final boolean thisStackHasBetterWhether the current Legion already has something better in the recruit tree (of this terrain) -
isImmediatelyUsefulKilling
final boolean isImmediatelyUsefulKillingWhether it's immediately useful to kill, i.e. we already have just enough to recruit and nothing better in this terrain. -
onlyThisStackHasIt
final boolean onlyThisStackHasItWhether this creature type appears in this stack, and in this stack only -
numberLeftToRecruit
final int numberLeftToRecruitHow many are left in the Caretaker's stack -
enoughLeftToRecruitHere
final boolean enoughLeftToRecruitHereWhether we can still recruit here or we are already out of luck (always true if we can't recruit here...) -
justEnoughLeftToRecruitHere
final boolean justEnoughLeftToRecruitHereWhether we can still recruit here with no room to spare (always true if we can't recruit here...)
-
-
Constructor Details
-
AllThereIsToKnowAboutYourCreature
AllThereIsToKnowAboutYourCreature(AbstractAI ai, Creature creature, Legion legion)
-
-
Method Details