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 intentryRadiusfinal intexitRadius
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 Vector3dmarkerPosition
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 Vector3dmarkerPosition
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 ComponentTypeplayerRefComponentType@Nonnull final Vector3dmarkerPosition@Nonnull final CommandBuffercommandBuffer
isPlayerInEntryArea
public
boolean
isPlayerInEntryArea
(@Nonnull final Vector3d playerPosition, @Nonnull final Vector3d markerPosition)
Method isPlayerInEntryArea.
- Parameters:
@Nonnull final Vector3dplayerPosition@Nonnull final Vector3dmarkerPosition
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 Vector3dmarkerPositionfinal intradius
toString
public
String
toString
()
Method toString.