net.sf.colossus.ai.helper
Class LegionMove
java.lang.Object
net.sf.colossus.ai.helper.LegionMove
- All Implemented Interfaces:
- java.lang.Comparable<LegionMove>
public class LegionMove
- extends java.lang.Object
- implements java.lang.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
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
critterMoves
private final java.util.List<CritterMove> critterMoves
evaluation
private java.util.Map<CritterMove,java.lang.String> evaluation
lmeval
private java.lang.String lmeval
value
private int value
LegionMove
public LegionMove()
add
public void add(CritterMove cm)
getCritterMoves
public java.util.List<CritterMove> getCritterMoves()
resetEvaluate
public void resetEvaluate()
getValue
public int getValue()
setValue
public void setValue(int v)
setEvaluate
public void setEvaluate(CritterMove cm,
java.lang.String val)
setEvaluate
public void setEvaluate(java.lang.String val)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getStringWithEvaluation
public java.lang.String getStringWithEvaluation()
equals
public boolean equals(java.lang.Object ob)
- Overrides:
equals
in class java.lang.Object
compareTo
public int compareTo(LegionMove m)
- Specified by:
compareTo
in interface java.lang.Comparable<LegionMove>
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object