net.sf.colossus.ai
Class RationalAI.CompCreaturesByValueName

java.lang.Object
  extended by net.sf.colossus.ai.RationalAI.CompCreaturesByValueName
All Implemented Interfaces:
java.util.Comparator<CreatureType>
Enclosing class:
RationalAI

public class RationalAI.CompCreaturesByValueName
extends java.lang.Object
implements java.util.Comparator<CreatureType>


Field Summary
private  Legion legion
           
 
Constructor Summary
RationalAI.CompCreaturesByValueName(Legion legion)
           
 
Method Summary
 int compare(CreatureType creature1, CreatureType creature2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

legion

private final Legion legion
Constructor Detail

RationalAI.CompCreaturesByValueName

public RationalAI.CompCreaturesByValueName(Legion legion)
Method Detail

compare

public final int compare(CreatureType creature1,
                         CreatureType creature2)
Specified by:
compare in interface java.util.Comparator<CreatureType>