ObjectiveLocationMarkerSystems

public class ObjectiveLocationMarkerSystems

Class ObjectiveLocationMarkerSystems. Provides objectivelocationmarkersystems functionality for the Hytale server.

java.lang.Object > ObjectiveLocationMarkerSystems

Field Summary

objectiveLocationMarkerComponent

final ObjectiveLocationMarker objectiveLocationMarkerComponent

Field objectiveLocationMarkerComponent.

markerAsset

final ObjectiveLocationMarkerAsset markerAsset

Field markerAsset.

activeObjective

final Objective activeObjective

Field activeObjective.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

rotation

final Vector3f rotation

Field rotation.

modelComponent

final ModelComponent modelComponent

Field modelComponent.

model

final Model model

Field model.

objectLocationMarkerComponent

final ObjectiveLocationMarker objectLocationMarkerComponent

Field objectLocationMarkerComponent.

objectiveDataStore

final ObjectiveDataStore objectiveDataStore

Field objectiveDataStore.

world

final World world

Field world.

entityReference

final Ref entityReference

Field entityReference.

position

final Vector3d position

Field position.

uuidComponent

final UUIDComponent uuidComponent

Field uuidComponent.

uuid

final UUID uuid

Field uuid.

playerReferences

final ObjectList> playerReferences

Field playerReferences.

playersInExitArea

final HashSet playersInExitArea

Field playersInExitArea.

playersInEntryArea

final PlayerRef[] playersInEntryArea

Field playersInEntryArea.

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

playerUuidComponent

final UUIDComponent playerUuidComponent

Field playerUuidComponent.

playerTransformComponent

final TransformComponent playerTransformComponent

Field playerTransformComponent.

playerWeatherTrackerComponent

final WeatherTracker playerWeatherTrackerComponent

Field playerWeatherTrackerComponent.

playerUUIDs

final Set playerUUIDs

Field playerUUIDs.

activePlayerUUIDs

final Set activePlayerUUIDs

Field activePlayerUUIDs.

objectiveId

final String objectiveId

Field objectiveId.

objectiveLocationMarkerAsset

final ObjectiveLocationMarkerAsset objectiveLocationMarkerAsset

Field objectiveLocationMarkerAsset.

objective

final Objective objective

Field objective.

objectiveModule

final ObjectivePlugin objectiveModule

Field objectiveModule.

logger

final HytaleLogger logger

Field logger.

playerUUID

final UUID playerUUID

Field playerUUID.

iterator

final Iterator iterator

Field iterator.

universe

final Universe universe

Field universe.

playerRef

final PlayerRef playerRef

Field playerRef.

environmentIndex

final int environmentIndex

Field environmentIndex.

taskId

final String taskId

Field taskId.

Method Detail

InitSystem

public public InitSystem (@Nonnull final ComponentType objectiveLocationMarkerComponent)

Method InitSystem.

Parameters:
@Nonnull final ComponentType objectiveLocationMarkerComponent

getQuery

public Query getQuery ()

Method getQuery.

onEntityAdded

public void onEntityAdded (@Nonnull final Ref ref, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityAdded.

Parameters:
@Nonnull final Ref ref
@Nonnull final AddReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

UntrackObjective

public new UntrackObjective (objectiveLocationMarkerComponent.activeObjectiveUUID)

Method UntrackObjective.

Parameters:
objectiveLocationMarkerComponent.activeObjectiveUUID objectiveLocationMarkerComponent.activeObjectiveUUID

ModelComponent

public new ModelComponent (new Model(model.getModelAssetId()

Method ModelComponent.

Parameters:
new Model(model.getModelAssetId(

onEntityRemove

public void onEntityRemove (@Nonnull final Ref ref, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityRemove.

Parameters:
@Nonnull final Ref ref
@Nonnull final RemoveReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

EnsureNetworkSendableSystem

public public EnsureNetworkSendableSystem ()

Method EnsureNetworkSendableSystem.

onEntityAdd

public void onEntityAdd (@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)

Method onEntityAdd.

Parameters:
@Nonnull final Holder holder
@Nonnull final AddReason reason
@Nonnull final Store store

NetworkId

public new NetworkId (store.getExternalData()

Method NetworkId.

Parameters:
store.getExternalData( store.getExternalData(

onEntityRemoved

public void onEntityRemoved (@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)

Method onEntityRemoved.

Parameters:
@Nonnull final Holder holder
@Nonnull final RemoveReason reason
@Nonnull final Store store

TickingSystem

public public TickingSystem (@Nonnull final ComponentType objectiveLocationMarkerComponentType, @Nonnull final ComponentType playerRefComponentType, @Nonnull final ResourceType, EntityStore>> playerSpatialComponent)

Method TickingSystem.

Parameters:
@Nonnull final ComponentType objectiveLocationMarkerComponentType
@Nonnull final ComponentType playerRefComponentType
@Nonnull final ResourceType, EntityStore>> playerSpatialComponent

SystemDependency

public new SystemDependency (Order.AFTER, PlayerSpatialSystem.class, OrderPriority.CLOSEST)

Method SystemDependency.

Parameters:
Order.AFTER Order.AFTER
PlayerSpatialSystem.class PlayerSpatialSystem.class
OrderPriority.CLOSEST OrderPriority.CLOSEST

getDependencies

public Set> getDependencies ()

Method getDependencies.

isParallel

public boolean isParallel (final int archetypeChunkSize, final int taskCount)

Method isParallel.

Parameters:
final int archetypeChunkSize
final int taskCount

tick

public void tick (final float dt, final int systemIndex, @Nonnull final Store store)

Method tick.

Parameters:
final float dt
final int systemIndex
@Nonnull final Store store

if

public else if (!activeObjective.isCompleted()

Method if.

Parameters:
!activeObjective.isCompleted( !activeObjective.isCompleted(

setupMarker

private void setupMarker (@Nonnull final Store store, @Nonnull final ObjectiveLocationMarker entity, @Nonnull final Ref entityReference, @Nonnull final Vector3d position, @Nonnull final UUID uuid, @Nonnull final CommandBuffer commandBuffer)

Method setupMarker.

Parameters:
@Nonnull final Store store
@Nonnull final ObjectiveLocationMarker entity
@Nonnull final Ref entityReference
@Nonnull final Vector3d position
@Nonnull final UUID uuid
@Nonnull final CommandBuffer commandBuffer

updateIncomingPlayers

static void updateIncomingPlayers (@Nonnull final PlayerRef[] playersInArea, final int playersInAreaSize, @Nonnull final ObjectiveLocationMarker entity, @Nonnull final Set playerUUIDs, @Nonnull final Set activePlayerUUIDs, @Nonnull final String objectiveId)

Method updateIncomingPlayers.

Parameters:
@Nonnull final PlayerRef[] playersInArea
final int playersInAreaSize
@Nonnull final ObjectiveLocationMarker entity
@Nonnull final Set playerUUIDs
@Nonnull final Set activePlayerUUIDs
@Nonnull final String objectiveId

TrackOrUpdateObjective

public new TrackOrUpdateObjective (entity.getActiveObjective()

Method TrackOrUpdateObjective.

Parameters:
entity.getActiveObjective( entity.getActiveObjective(

updateOutgoingPlayers

static void updateOutgoingPlayers (@Nonnull final Set playersInArea, @Nonnull final ObjectiveLocationMarker entity, @Nullable final Set activePlayerUUIDs, @Nonnull final String objectiveId)

Method updateOutgoingPlayers.

Parameters:
@Nonnull final Set playersInArea
@Nonnull final ObjectiveLocationMarker entity
@Nullable final Set activePlayerUUIDs
@Nonnull final String objectiveId

isPlayerInSpecificEnvironment

static boolean isPlayerInSpecificEnvironment (@Nonnull final ObjectiveLocationMarker entity, @Nonnull final WeatherTracker weatherTracker, @Nonnull final TransformComponent transform, @Nonnull final ComponentAccessor componentAccessor)

Method isPlayerInSpecificEnvironment.

Parameters:
@Nonnull final ObjectiveLocationMarker entity
@Nonnull final WeatherTracker weatherTracker
@Nonnull final TransformComponent transform
@Nonnull final ComponentAccessor componentAccessor

untrackEntityObjectiveForPlayer

static void untrackEntityObjectiveForPlayer (@Nonnull final ObjectiveLocationMarker entity, @Nonnull final UUID playerUUID)

Method untrackEntityObjectiveForPlayer.

Parameters:
@Nonnull final ObjectiveLocationMarker entity
@Nonnull final UUID playerUUID