SensorPath

public class SensorPath extends SensorBase

Class SensorPath. Provides sensorpath functionality for the Hytale server.

java.lang.Object > SensorBase > SensorPath

Field Summary

path

protected String path

Field path.

pathIndex

protected int pathIndex

Field pathIndex.

pathChangeRevision

protected int pathChangeRevision

Field pathChangeRevision.

distanceSquared

protected double distanceSquared

Field distanceSquared.

loadStatus

protected LoadStatus loadStatus

Field loadStatus.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

npcComponent

final NPCEntity npcComponent

Field npcComponent.

position

final Vector3d position

Field position.

pathManager

final PathManager pathManager

Field pathManager.

newRevision

final int newRevision

Field newRevision.

newPathRequested

final boolean newPathRequested

Field newPathRequested.

pathId

final UUID pathId

Field pathId.

world

final World world

Field world.

worldGenIdComponent

final WorldGenId worldGenIdComponent

Field worldGenIdComponent.

worldGenId

final int worldGenId

Field worldGenId.

worldPathData

final WorldPathData worldPathData

Field worldPathData.

entityPath

final UUID entityPath

Field entityPath.

results

final ObjectList> results

Field results.

eRef

final Ref eRef

Field eRef.

ePatrolPathMarkerEntityComponent

final PatrolPathMarkerEntity ePatrolPathMarkerEntityComponent

Field ePatrolPathMarkerEntityComponent.

eTransformComponent

final TransformComponent eTransformComponent

Field eTransformComponent.

dist2

final double dist2

Field dist2.

prevDistanceSquared

final double prevDistanceSquared

Field prevDistanceSquared.

newDistance

final double newDistance

Field newDistance.

pathWaypoint

final IPathWaypoint pathWaypoint

Field pathWaypoint.

waypoint

final Vector3d waypoint

Field waypoint.

distance

final double distance

Field distance.

Method Detail

SensorPath

public public SensorPath (@Nonnull final BuilderSensorPath builder, @Nonnull final BuilderSupport support)

Method SensorPath.

Parameters:
@Nonnull final BuilderSensorPath builder
@Nonnull final BuilderSupport support

matches

public boolean matches (@Nonnull final Ref ref, @Nonnull final Role role, final double dt, @Nonnull final Store store)

Method matches.

Parameters:
@Nonnull final Ref ref
@Nonnull final Role role
final double dt
@Nonnull final Store store

WorldGenId

public new WorldGenId (((IPrefabPath)

Method WorldGenId.

Parameters:
((IPrefabPath ((IPrefabPath

getSensorInfo

public InfoProvider getSensorInfo ()

Method getSensorInfo.

pathMatches

protected boolean pathMatches (@Nonnull final IPath path)

Method pathMatches.

Parameters:
@Nonnull final IPath path

isInRange

protected boolean isInRange (final double squaredDistance)

Method isInRange.

Parameters:
final double squaredDistance

findPath

protected IPath findPath (@Nonnull final Ref ref, @Nonnull final Vector3d position, @Nonnull final Store store, @Nonnull final Set disallowedPaths, final boolean newPathRequested)

Method findPath.

Parameters:
@Nonnull final Ref ref
@Nonnull final Vector3d position
@Nonnull final Store store
@Nonnull final Set disallowedPaths
final boolean newPathRequested

findClosestWaypoint

protected void findClosestWaypoint (@Nonnull final IPath path, @Nonnull final Vector3d position, @Nonnull final Vector3d cachedTarget, @Nonnull final ComponentAccessor componentAccessor)

Method findClosestWaypoint.

Parameters:
@Nonnull final IPath path
@Nonnull final Vector3d position
@Nonnull final Vector3d cachedTarget
@Nonnull final ComponentAccessor componentAccessor

path

public transient path (testing purposes only)

Method path.

Parameters:
testing purposes only

PathType

public private PathType (final String description)

Method PathType.

Parameters:
final String description

get

public String get ()

Method get.