Class LegionMove
java.lang.Object
net.sf.colossus.ai.helper.LegionMove
- All Implemented Interfaces:
Comparable<LegionMove>
LegionMove has a List of one CritterMove per mobile critter
in the legion.
Originally in SimpleAI, which at the time had the following authors.
- Author:
- Bruce Sherrod, David Ripton, Romain Dolbeau
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<CritterMove> private Map<CritterMove, String> private Stringprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(CritterMove cm) intbooleanintgetValue()inthashCode()voidvoidsetEvaluate(String val) voidsetEvaluate(CritterMove cm, String val) voidsetValue(int v) toString()
-
Field Details
-
critterMoves
-
evaluation
-
lmeval
-
value
private int value
-
-
Constructor Details
-
LegionMove
public LegionMove()
-
-
Method Details
-
add
-
getCritterMoves
-
resetEvaluate
public void resetEvaluate() -
getValue
public int getValue() -
setValue
public void setValue(int v) -
setEvaluate
-
setEvaluate
-
toString
-
getStringWithEvaluation
-
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<LegionMove>
-
hashCode
-