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 ComponentTypenpcComponentType@Nonnull final ComponentTypevelocityComponentType@Nonnull final ComponentTypemovementStatesComponentType
SystemDependency
public
new
SystemDependency
(Order.AFTER, ComputeVelocitySystem.class)
Method SystemDependency.
- Parameters:
Order.AFTEROrder.AFTERComputeVelocitySystem.classComputeVelocitySystem.class
getDependencies
public
Set>
getDependencies
()
Method getDependencies.
isParallel
public
boolean
isParallel
(final int archetypeChunkSize, final int taskCount)
Method isParallel.
- Parameters:
final intarchetypeChunkSizefinal inttaskCount
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 floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer