TargetMemorySystems

public class TargetMemorySystems

Class TargetMemorySystems. Provides targetmemorysystems functionality for the Hytale server.

java.lang.Object > TargetMemorySystems

Field Summary

targetMemoryComponent

final TargetMemory targetMemoryComponent

Field targetMemoryComponent.

hostileMap

final Int2FloatOpenHashMap hostileMap

Field hostileMap.

hostileList

final List> hostileList

Field hostileList.

friendlyMap

final Int2FloatOpenHashMap friendlyMap

Field friendlyMap.

friendlyList

final List> friendlyList

Field friendlyList.

closestHostileRef

final Ref closestHostileRef

Field closestHostileRef.

ref

final Ref ref

Field ref.

timeRemaining

final float timeRemaining

Field timeRemaining.

targetPlayerComponent

final Player targetPlayerComponent

Field targetPlayerComponent.

context

final HytaleLogger.Api context

Field context.

Method Detail

Ticking

public public Ticking (@Nonnull final ComponentType targetMemoryComponentType)

Method Ticking.

Parameters:
@Nonnull final ComponentType targetMemoryComponentType

SystemDependency

public new SystemDependency (Order.BEFORE, RoleSystems.BehaviourTickSystem.class)

Method SystemDependency.

Parameters:
Order.BEFORE Order.BEFORE
RoleSystems.BehaviourTickSystem.class RoleSystems.BehaviourTickSystem.class

isParallel

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

Method isParallel.

Parameters:
final int archetypeChunkSize
final int taskCount

getQuery

public Query getQuery ()

Method getQuery.

getDependencies

public Set> getDependencies ()

Method getDependencies.

tick

public void tick (final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method tick.

Parameters:
final float dt
final int index
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

iterateMemory

static void iterateMemory (final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final CommandBuffer commandBuffer, @Nonnull final List> targetsList, @Nonnull final Int2FloatOpenHashMap targetsMap, @Nonnull final String type)

Method iterateMemory.

Parameters:
final float dt
final int index
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final CommandBuffer commandBuffer
@Nonnull final List> targetsList
@Nonnull final Int2FloatOpenHashMap targetsMap
@Nonnull final String type

isValidTarget

static boolean isValidTarget (@Nonnull final Ref targetRef, @Nonnull final CommandBuffer commandBuffer)

Method isValidTarget.

Parameters:
@Nonnull final Ref targetRef
@Nonnull final CommandBuffer commandBuffer

removeEntry

static void removeEntry (final int index, @Nonnull final ArchetypeChunk archetypeChunk, final int targetIndex, @Nonnull final Ref targetRef, @Nonnull final List> targetsList, @Nonnull final Int2FloatOpenHashMap targetsMap, @Nonnull final String type)

Method removeEntry.

Parameters:
final int index
@Nonnull final ArchetypeChunk archetypeChunk
final int targetIndex
@Nonnull final Ref targetRef
@Nonnull final List> targetsList
@Nonnull final Int2FloatOpenHashMap targetsMap
@Nonnull final String type