TimerSystem

public class TimerSystem extends SteppableTickingSystem

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

java.lang.Object > SteppableTickingSystem > TimerSystem

Field Summary

timersComponent

final Timers timersComponent

Field timersComponent.

Method Detail

TimerSystem

public public TimerSystem (@Nonnull final ComponentType timersComponentType, @Nonnull final Set> dependencies)

Method TimerSystem.

Parameters:
@Nonnull final ComponentType timersComponentType
@Nonnull final Set> dependencies

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

getQuery

public Query getQuery ()

Method getQuery.

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