Package net.sf.colossus.ai.helper
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 String
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(CritterMove cm) int
boolean
int
getValue()
int
hashCode()
void
void
setEvaluate
(String val) void
setEvaluate
(CritterMove cm, String val) void
setValue
(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:
compareTo
in interfaceComparable<LegionMove>
-
hashCode
public int hashCode()
-