ObjectiveLocationAreaBox

public class ObjectiveLocationAreaBox extends ObjectiveLocationMarkerArea

Class ObjectiveLocationAreaBox. Provides objectivelocationareabox functionality for the Hytale server.

java.lang.Object > ObjectiveLocationMarkerArea > ObjectiveLocationAreaBox

Field Summary

entryArea

private Box entryArea

Field entryArea.

exitArea

private Box exitArea

Field exitArea.

reference

final Ref reference

Field reference.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

snappedYaw

final float snappedYaw

Field snappedYaw.

entry

final Box entry

Field entry.

exit

final Box exit

Field exit.

Method Detail

ObjectiveLocationAreaBox

public public ObjectiveLocationAreaBox (final Box entryBox, final Box exitBox)

Method ObjectiveLocationAreaBox.

Parameters:
final Box entryBox
final Box exitBox

getEntryArea

public Box getEntryArea ()

Method getEntryArea.

getExitArea

public Box 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

getRotatedArea

public ObjectiveLocationMarkerArea getRotatedArea (final float yaw, final float pitch)

Method getRotatedArea.

Parameters:
final float yaw
final float pitch

computeAreaBoxes

protected void computeAreaBoxes ()

Method computeAreaBoxes.

getPlayersInArea

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

Method getPlayersInArea.

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

toString

public String toString ()

Method toString.