|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.colossus.ai.objectives.AbstractObjectiveHelper.AllThereIsToKnowAboutYourCreature
protected class AbstractObjectiveHelper.AllThereIsToKnowAboutYourCreature
Helper class holding some knowledge about a given creature.
Field Summary | |
---|---|
(package private) CreatureType |
bestRecruit
The best possible recruit (by points value) this creature could someday recruit (anywhere) |
(package private) Creature |
creature
The creature this knowledged is about |
(package private) boolean |
enoughLeftToRecruitHere
Whether we can still recruit here or we are already out of luck (always true if we can't recruit here...) |
(package private) boolean |
isImmediatelyUsefulKilling
Whether it's immediately useful to kill, i.e. |
(package private) boolean |
justEnoughLeftToRecruitHere
Whether we can still recruit here with no room to spare (always true if we can't recruit here...) |
(package private) int |
numberLeftToRecruit
How many are left in the Caretaker's stack |
(package private) int |
numberNeededHere
How many we need in the current terrain to recruit (BIGNUM if we can't recruit) |
(package private) boolean |
onlyThisStackHasIt
Whether this creature type appears in this stack, and in this stack only |
(package private) int |
playerNumber
How many creature of the same type the player owns (in all its Legion) |
(package private) java.util.Set<CreatureType> |
recruits
What can this creature recruits |
(package private) int |
stackNumber
How many creature of the same type are in this legion (including this one) |
(package private) boolean |
thisStackHasBetter
Whether the current Legion already has something better in the recruit tree (of this terrain) |
Constructor Summary | |
---|---|
AbstractObjectiveHelper.AllThereIsToKnowAboutYourCreature(AbstractAI ai,
Creature creature,
Legion legion)
|
Method Summary | |
---|---|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
final Creature creature
final int playerNumber
final int stackNumber
final java.util.Set<CreatureType> recruits
final CreatureType bestRecruit
final int numberNeededHere
final boolean thisStackHasBetter
final boolean isImmediatelyUsefulKilling
final boolean onlyThisStackHasIt
final int numberLeftToRecruit
final boolean enoughLeftToRecruitHere
final boolean justEnoughLeftToRecruitHere
Constructor Detail |
---|
AbstractObjectiveHelper.AllThereIsToKnowAboutYourCreature(AbstractAI ai, Creature creature, Legion legion)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |