public interface SimpleLocatable
| Modifier and Type | Method and Description |
|---|---|
default int |
distanceTo(SimpleLocatable to)
Distance to object {to}
|
WorldPoint |
getLocation()
Position in world of object
|
default boolean |
within(WorldArea area)
If object is inside an area
|
default boolean |
withinRange(SimpleLocatable to,
int range)
If object is within {range} of {to}
|
WorldPoint getLocation()
default boolean within(WorldArea area)
area - - area to checkdefault boolean withinRange(SimpleLocatable to, int range)
to - - object to checkrange - - range to check withindefault int distanceTo(SimpleLocatable to)
to - - object to check against