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 ComponentTypestateEvaluatorComponent@Nonnull final ComponentTypenpcComponentType
SystemDependency
public
new
SystemDependency
(Order.BEFORE, RoleSystems.BehaviourTickSystem.class)
Method SystemDependency.
- Parameters:
Order.BEFOREOrder.BEFORERoleSystems.BehaviourTickSystem.classRoleSystems.BehaviourTickSystem.class
getDependencies
public
Set>
getDependencies
()
Method getDependencies.
isParallel
public
boolean
isParallel
(final int archetypeChunkSize, final int taskCount)
Method isParallel.
- Parameters:
final intarchetypeChunkSizefinal inttaskCount
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 floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer