StateEvaluatorSystem

public class StateEvaluatorSystem extends EntityTickingSystem

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

java.lang.Object > EntityTickingSystem > StateEvaluatorSystem

Field Summary

npcComponent

final NPCEntity npcComponent

Field npcComponent.

uuidComponent

final UUIDComponent uuidComponent

Field uuidComponent.

role

final Role role

Field role.

stateSupport

final StateSupport stateSupport

Field stateSupport.

stateEvaluator

final StateEvaluator stateEvaluator

Field stateEvaluator.

evaluationContext

final EvaluationContext evaluationContext

Field evaluationContext.

chosenOption

final Evaluator.OptionHolder chosenOption

Field chosenOption.

action

final StateOption action

Field action.

targetState

final int targetState

Field targetState.

targetSubState

final int targetSubState

Field targetSubState.

Method Detail

StateEvaluatorSystem

public public StateEvaluatorSystem (@Nonnull final ComponentType stateEvaluatorComponent, @Nonnull final ComponentType npcComponentType)

Method StateEvaluatorSystem.

Parameters:
@Nonnull final ComponentType stateEvaluatorComponent
@Nonnull final ComponentType npcComponentType

SystemDependency

public new SystemDependency (Order.BEFORE, RoleSystems.BehaviourTickSystem.class)

Method SystemDependency.

Parameters:
Order.BEFORE Order.BEFORE
RoleSystems.BehaviourTickSystem.class RoleSystems.BehaviourTickSystem.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

getQuery

public Query getQuery ()

Method getQuery.

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