Class LegionMove

java.lang.Object
net.sf.colossus.ai.helper.LegionMove
All Implemented Interfaces:
Comparable<LegionMove>

public class LegionMove extends Object implements 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 Details

  • Constructor Details

    • LegionMove

      public LegionMove()
  • Method Details

    • add

      public void add(CritterMove cm)
    • getCritterMoves

      public List<CritterMove> getCritterMoves()
    • resetEvaluate

      public void resetEvaluate()
    • getValue

      public int getValue()
    • setValue

      public void setValue(int v)
    • setEvaluate

      public void setEvaluate(CritterMove cm, String val)
    • setEvaluate

      public void setEvaluate(String val)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getStringWithEvaluation

      public String getStringWithEvaluation()
    • equals

      public boolean equals(Object ob)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(LegionMove m)
      Specified by:
      compareTo in interface Comparable<LegionMove>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object