net.sf.colossus.ai.helper
Class OnTheFlyLegionMove.OnTheFlyLegionMoveIterator.myIntArrayComparator

java.lang.Object
  extended by net.sf.colossus.ai.helper.OnTheFlyLegionMove.OnTheFlyLegionMoveIterator.myIntArrayComparator
All Implemented Interfaces:
java.util.Comparator<int[]>
Direct Known Subclasses:
OnTheFlyLegionMove.OnTheFlyLegionMoveIterator.myIntArrayLegionValueComparator
Enclosing class:
OnTheFlyLegionMove.OnTheFlyLegionMoveIterator

 class OnTheFlyLegionMove.OnTheFlyLegionMoveIterator.myIntArrayComparator
extends java.lang.Object
implements java.util.Comparator<int[]>


Constructor Summary
OnTheFlyLegionMove.OnTheFlyLegionMoveIterator.myIntArrayComparator()
           
 
Method Summary
(package private)  long baseXvalue(int[] t)
           
 int compare(int[] t1, int[] t2)
           
(package private)  int[] nextValue(int[] t)
           
(package private)  int[] nextValue(int[] t, int factor)
           
(package private)  int[] roundNextUp(int[] t, int factor)
           
 
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
 

Constructor Detail

OnTheFlyLegionMove.OnTheFlyLegionMoveIterator.myIntArrayComparator

OnTheFlyLegionMove.OnTheFlyLegionMoveIterator.myIntArrayComparator()
Method Detail

baseXvalue

long baseXvalue(int[] t)

roundNextUp

int[] roundNextUp(int[] t,
                  int factor)

nextValue

int[] nextValue(int[] t)

nextValue

int[] nextValue(int[] t,
                int factor)

compare

public int compare(int[] t1,
                   int[] t2)
Specified by:
compare in interface java.util.Comparator<int[]>