MovementStatesSystem

public class MovementStatesSystem extends SteppableTickingSystem

System for handling movementstates mechanics. Systems contain game logic that operates on entities with specific component types.

java.lang.Object > SteppableTickingSystem > MovementStatesSystem

Field Summary

npcComponent

final NPCEntity npcComponent

Field npcComponent.

velocityComponent

final Velocity velocityComponent

Field velocityComponent.

movementStatesComponent

final MovementStatesComponent movementStatesComponent

Field movementStatesComponent.

ref

final Ref ref

Field ref.

Method Detail

MovementStatesSystem

public public MovementStatesSystem (@Nonnull final ComponentType npcComponentType, @Nonnull final ComponentType velocityComponentType, @Nonnull final ComponentType movementStatesComponentType)

Method MovementStatesSystem.

Parameters:
@Nonnull final ComponentType npcComponentType
@Nonnull final ComponentType velocityComponentType
@Nonnull final ComponentType movementStatesComponentType

SystemDependency

public new SystemDependency (Order.AFTER, ComputeVelocitySystem.class)

Method SystemDependency.

Parameters:
Order.AFTER Order.AFTER
ComputeVelocitySystem.class ComputeVelocitySystem.class

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

steppedTick

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

Method steppedTick.

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

getQuery

public Query getQuery ()

Method getQuery.