|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.pogamut.Client.ItemDistance
class ItemDistance
auxiliary class for sorting Items according to distance from the bot used in nearestHealths for instance
Field Summary | |
---|---|
int |
distance
|
Item |
item
|
Constructor Summary | |
---|---|
ItemDistance(Item item,
int distance)
|
Method Summary | |
---|---|
int |
compareTo(java.lang.Object arg0)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Item item
public int distance
Constructor Detail |
---|
public ItemDistance(Item item, int distance)
Method Detail |
---|
public int compareTo(java.lang.Object arg0)
compareTo
in interface java.lang.Comparable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |