public class LocalZoneIndex
extends java.lang.Object
Constructor and Description |
---|
LocalZoneIndex(ZoneGrid grid,
int gridRadius) |
LocalZoneIndex(ZoneGrid grid,
int xRadius,
int yRadius,
int zRadius) |
LocalZoneIndex(ZoneGrid grid,
com.simsilica.mathd.Vec3i zoneExtents) |
Modifier and Type | Method and Description |
---|---|
ZoneKey |
getCenter() |
ZoneGrid |
getGrid() |
int |
getIndexSize() |
int |
getMinimumZoneId() |
ZoneKey |
getZone(int zoneId) |
ZoneKey |
getZone(int zoneId,
ZoneKey defaultValue) |
int |
getZoneId(ZoneKey zone) |
static void |
main(java.lang.String... args) |
boolean |
setCenter(com.simsilica.mathd.Vec3d pos,
java.util.List<ZoneKey> entered,
java.util.List<ZoneKey> exited) |
boolean |
setCenter(ZoneKey center,
java.util.List<ZoneKey> entered,
java.util.List<ZoneKey> exited) |
public LocalZoneIndex(ZoneGrid grid, int gridRadius)
public LocalZoneIndex(ZoneGrid grid, com.simsilica.mathd.Vec3i zoneExtents)
public LocalZoneIndex(ZoneGrid grid, int xRadius, int yRadius, int zRadius)
public int getIndexSize()
public int getMinimumZoneId()
public ZoneGrid getGrid()
public ZoneKey getZone(int zoneId)
public int getZoneId(ZoneKey zone)
public ZoneKey getCenter()
public boolean setCenter(com.simsilica.mathd.Vec3d pos, java.util.List<ZoneKey> entered, java.util.List<ZoneKey> exited)
public boolean setCenter(ZoneKey center, java.util.List<ZoneKey> entered, java.util.List<ZoneKey> exited)
public static void main(java.lang.String... args)