ItemSpatialSystem

public class ItemSpatialSystem extends SpatialSystem

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

java.lang.Object > SpatialSystem > ItemSpatialSystem

Field Summary

transformComponent

final TransformComponent transformComponent

Field transformComponent.

Method Detail

ItemSpatialSystem

public public ItemSpatialSystem (final ResourceType, EntityStore>> spatialResource)

Method ItemSpatialSystem.

Parameters:
final ResourceType, EntityStore>> spatialResource

getQuery

public Query getQuery ()

Method getQuery.

tick

public void tick (final float dt, final int systemIndex, @Nonnull final Store store)

Method tick.

Parameters:
final float dt
final int systemIndex
@Nonnull final Store store

getPosition

public Vector3d getPosition (@Nonnull final ArchetypeChunk archetypeChunk, final int index)

Method getPosition.

Parameters:
@Nonnull final ArchetypeChunk archetypeChunk
final int index