Package net.sf.colossus.ai.objectives
Class AbstractObjectiveHelper.AllThereIsToKnowAboutYourCreature
- java.lang.Object
-
- net.sf.colossus.ai.objectives.AbstractObjectiveHelper.AllThereIsToKnowAboutYourCreature
-
- Enclosing class:
- AbstractObjectiveHelper
protected class AbstractObjectiveHelper.AllThereIsToKnowAboutYourCreature extends java.lang.ObjectHelper class holding some knowledge about a given creature.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) CreatureTypebestRecruitThe best possible recruit (by points value) this creature could someday recruit (anywhere)(package private) CreaturecreatureThe creature this knowledged is about(package private) booleanenoughLeftToRecruitHereWhether we can still recruit here or we are already out of luck (always true if we can't recruit here...)(package private) booleanisImmediatelyUsefulKillingWhether it's immediately useful to kill, i.e.(package private) booleanjustEnoughLeftToRecruitHereWhether we can still recruit here with no room to spare (always true if we can't recruit here...)(package private) intnumberLeftToRecruitHow many are left in the Caretaker's stack(package private) intnumberNeededHereHow many we need in the current terrain to recruit (BIGNUM if we can't recruit)(package private) booleanonlyThisStackHasItWhether this creature type appears in this stack, and in this stack only(package private) intplayerNumberHow many creature of the same type the player owns (in all its Legion)(package private) java.util.Set<CreatureType>recruitsWhat can this creature recruits(package private) intstackNumberHow many creature of the same type are in this legion (including this one)(package private) booleanthisStackHasBetterWhether the current Legion already has something better in the recruit tree (of this terrain)
-
Constructor Summary
Constructors Constructor Description AllThereIsToKnowAboutYourCreature(AbstractAI ai, Creature creature, Legion legion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()
-
-
-
Field Detail
-
creature
final Creature creature
The creature this knowledged is about
-
playerNumber
final int playerNumber
How many creature of the same type the player owns (in all its Legion)
-
stackNumber
final int stackNumber
How many creature of the same type are in this legion (including this one)
-
recruits
final java.util.Set<CreatureType> recruits
What can this creature recruits
-
bestRecruit
final CreatureType bestRecruit
The best possible recruit (by points value) this creature could someday recruit (anywhere)
-
numberNeededHere
final int numberNeededHere
How many we need in the current terrain to recruit (BIGNUM if we can't recruit)
-
thisStackHasBetter
final boolean thisStackHasBetter
Whether the current Legion already has something better in the recruit tree (of this terrain)
-
isImmediatelyUsefulKilling
final boolean isImmediatelyUsefulKilling
Whether it's immediately useful to kill, i.e. we already have just enough to recruit and nothing better in this terrain.
-
onlyThisStackHasIt
final boolean onlyThisStackHasIt
Whether this creature type appears in this stack, and in this stack only
-
numberLeftToRecruit
final int numberLeftToRecruit
How many are left in the Caretaker's stack
-
enoughLeftToRecruitHere
final boolean enoughLeftToRecruitHere
Whether we can still recruit here or we are already out of luck (always true if we can't recruit here...)
-
justEnoughLeftToRecruitHere
final boolean justEnoughLeftToRecruitHere
Whether we can still recruit here with no room to spare (always true if we can't recruit here...)
-
-
Constructor Detail
-
AllThereIsToKnowAboutYourCreature
AllThereIsToKnowAboutYourCreature(AbstractAI ai, Creature creature, Legion legion)
-
-