MovementStatesSystems

public class MovementStatesSystems

Class MovementStatesSystems. Provides movementstatessystems functionality for the Hytale server.

java.lang.Object > MovementStatesSystems

Field Summary

world

final World world

Field world.

playerComponent

final Player playerComponent

Field playerComponent.

movementStatesComponent

final MovementStatesComponent movementStatesComponent

Field movementStatesComponent.

perWorldData

final PlayerWorldData perWorldData

Field perWorldData.

movementStates

final SavedMovementStates movementStates

Field movementStates.

visibleComponent

final EntityTrackerSystems.Visible visibleComponent

Field visibleComponent.

newMovementStates

final MovementStates newMovementStates

Field newMovementStates.

sentMovementStates

final MovementStates sentMovementStates

Field sentMovementStates.

update

final ComponentUpdate update

Field update.

Method Detail

AddSystem

public public AddSystem (@Nonnull final ComponentType movementStatesComponentComponentType)

Method AddSystem.

Parameters:
@Nonnull final ComponentType movementStatesComponentComponentType

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

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

getQuery

public Query getQuery ()

Method getQuery.

PlayerInitSystem

public public PlayerInitSystem (@Nonnull final ComponentType playerComponentType, @Nonnull final ComponentType movementStatesComponentType)

Method PlayerInitSystem.

Parameters:
@Nonnull final ComponentType playerComponentType
@Nonnull final ComponentType movementStatesComponentType

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

SavedMovementStates

public new SavedMovementStates ()

Method SavedMovementStates.

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

TickingSystem

public public TickingSystem (@Nonnull final ComponentType visibleComponentType, @Nonnull final ComponentType movementStatesComponentComponentType)

Method TickingSystem.

Parameters:
@Nonnull final ComponentType visibleComponentType
@Nonnull final ComponentType movementStatesComponentComponentType

getGroup

public SystemGroup getGroup ()

Method getGroup.

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

if

public else if (!visibleComponent.newlyVisibleTo.isEmpty()

Method if.

Parameters:
!visibleComponent.newlyVisibleTo.isEmpty( !visibleComponent.newlyVisibleTo.isEmpty(

queueUpdatesFor

static void queueUpdatesFor (@Nonnull final Ref ref, @Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo, @Nonnull final MovementStatesComponent movementStatesComponent)

Method queueUpdatesFor.

Parameters:
@Nonnull final Ref ref
@Nonnull final Map, EntityTrackerSystems.EntityViewer> visibleTo
@Nonnull final MovementStatesComponent movementStatesComponent

copyMovementStatesFrom

static void copyMovementStatesFrom (@Nonnull final MovementStates from, @Nonnull final MovementStates to)

Method copyMovementStatesFrom.

Parameters:
@Nonnull final MovementStates from
@Nonnull final MovementStates to