PlayerVelocityInstructionSystem

public class PlayerVelocityInstructionSystem extends EntityTickingSystem

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

java.lang.Object > EntityTickingSystem > PlayerVelocityInstructionSystem

Field Summary

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

velocityComponent

final Velocity velocityComponent

Field velocityComponent.

velocity

final Vector3d velocity

Field velocity.

velocityConfig

final VelocityConfig velocityConfig

Field velocityConfig.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

world

final World world

Field world.

Method Detail

PlayerVelocityInstructionSystem

public public PlayerVelocityInstructionSystem ()

Method PlayerVelocityInstructionSystem.

SystemDependency

public new SystemDependency (Order.BEFORE, (Class)

Method SystemDependency.

Parameters:
Order.BEFORE Order.BEFORE
(Class (Class

SystemTypeDependency

public new SystemTypeDependency (Order.AFTER, (SystemType ISystem>)

Method SystemTypeDependency.

Parameters:
Order.AFTER Order.AFTER
(SystemType ISystem>

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

ChangeVelocity

public new ChangeVelocity ((float)

Method ChangeVelocity.

Parameters:
(float (float

Vector3d

public new Vector3d (velocity.x, velocity.y, velocity.z)

Method Vector3d.

Parameters:
velocity.x velocity.x
velocity.y velocity.y
velocity.z velocity.z

getDependencies

public Set> getDependencies ()

Method getDependencies.

getQuery

public Query getQuery ()

Method getQuery.