ObjectiveLocationAreaRadius

public class ObjectiveLocationAreaRadius extends ObjectiveLocationMarkerArea

Class ObjectiveLocationAreaRadius. Provides objectivelocationarearadius functionality for the Hytale server.

java.lang.Object > ObjectiveLocationMarkerArea > ObjectiveLocationAreaRadius

Field Summary

entryArea

protected int entryArea

Field entryArea.

exitArea

protected int exitArea

Field exitArea.

reference

final Ref reference

Field reference.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

Method Detail

ObjectiveLocationAreaRadius

public public ObjectiveLocationAreaRadius (final int entryRadius, final int exitRadius)

Method ObjectiveLocationAreaRadius.

Parameters:
final int entryRadius
final int exitRadius

getEntryArea

public int getEntryArea ()

Method getEntryArea.

getExitArea

public int getExitArea ()

Method getExitArea.

getPlayersInEntryArea

public void getPlayersInEntryArea (@Nonnull final SpatialResource, EntityStore> spatialComponent, @Nonnull final List> results, @Nonnull final Vector3d markerPosition)

Method getPlayersInEntryArea.

Parameters:
@Nonnull final SpatialResource, EntityStore> spatialComponent
@Nonnull final List> results
@Nonnull final Vector3d markerPosition

getPlayersInExitArea

public void getPlayersInExitArea (@Nonnull final SpatialResource, EntityStore> spatialComponent, @Nonnull final List> results, @Nonnull final Vector3d markerPosition)

Method getPlayersInExitArea.

Parameters:
@Nonnull final SpatialResource, EntityStore> spatialComponent
@Nonnull final List> results
@Nonnull final Vector3d markerPosition

hasPlayerInExitArea

public boolean hasPlayerInExitArea (@Nonnull final SpatialResource, EntityStore> spatialComponent, @Nonnull final ComponentType playerRefComponentType, @Nonnull final Vector3d markerPosition, @Nonnull final CommandBuffer commandBuffer)

Method hasPlayerInExitArea.

Parameters:
@Nonnull final SpatialResource, EntityStore> spatialComponent
@Nonnull final ComponentType playerRefComponentType
@Nonnull final Vector3d markerPosition
@Nonnull final CommandBuffer commandBuffer

isPlayerInEntryArea

public boolean isPlayerInEntryArea (@Nonnull final Vector3d playerPosition, @Nonnull final Vector3d markerPosition)

Method isPlayerInEntryArea.

Parameters:
@Nonnull final Vector3d playerPosition
@Nonnull final Vector3d markerPosition

computeAreaBoxes

protected void computeAreaBoxes ()

Method computeAreaBoxes.

getPlayersInArea

static void getPlayersInArea (@Nonnull final SpatialResource, EntityStore> spatialComponent, @Nonnull final List> results, @Nonnull final Vector3d markerPosition, final int radius)

Method getPlayersInArea.

Parameters:
@Nonnull final SpatialResource, EntityStore> spatialComponent
@Nonnull final List> results
@Nonnull final Vector3d markerPosition
final int radius

toString

public String toString ()

Method toString.