|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object civquest.units.DijkstraMoveCalculator.FieldInfoComparator
Comparator for comparing two FieldInfo-objects (needed for the heap used within the dijkstra-algorithm). info1 < info2 <=> (info1.turn < info2.turn) || (info1.turn == info2.turn && info1.time < info2.time <=> info1 describes an arrival that happens earlier than the arrival described in info2.
Constructor Summary | |
DijkstraMoveCalculator.FieldInfoComparator()
|
Method Summary | |
int |
compare(java.lang.Object obj1,
java.lang.Object obj2)
|
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 |
public DijkstraMoveCalculator.FieldInfoComparator()
Method Detail |
public int compare(java.lang.Object obj1, java.lang.Object obj2)
compare
in interface java.util.Comparator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |