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.
friendlyMap
final
Int2FloatOpenHashMap
friendlyMap
Field friendlyMap.
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
SystemDependency
public
new
SystemDependency
(Order.BEFORE, RoleSystems.BehaviourTickSystem.class)
Method SystemDependency.
- Parameters:
Order.BEFOREOrder.BEFORERoleSystems.BehaviourTickSystem.classRoleSystems.BehaviourTickSystem.class
isParallel
public
boolean
isParallel
(final int archetypeChunkSize, final int taskCount)
Method isParallel.
- Parameters:
final intarchetypeChunkSizefinal inttaskCount
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 floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
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 floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final CommandBuffercommandBuffer@Nonnull final List>targetsList@Nonnull final Int2FloatOpenHashMaptargetsMap@Nonnull final Stringtype
isValidTarget
static
boolean
isValidTarget
(@Nonnull final Ref targetRef, @Nonnull final CommandBuffer commandBuffer)
Method isValidTarget.
- Parameters:
@Nonnull final ReftargetRef@Nonnull final CommandBuffercommandBuffer
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 intindex@Nonnull final ArchetypeChunkarchetypeChunkfinal inttargetIndex@Nonnull final ReftargetRef@Nonnull final List>targetsList@Nonnull final Int2FloatOpenHashMaptargetsMap@Nonnull final Stringtype