Class AIEventTarget<S extends IState>

All Implemented Interfaces:
ITickingTransition<S>, IStateMachineEvent<S>, IStateMachineTransition<S>

public class AIEventTarget<S extends IState> extends TickingEvent<S>
Special AI Targets which are used for preState cecks and limits. They are checked before normal AITargets always
  • Constructor Details

    • AIEventTarget

      public AIEventTarget(@NotNull @NotNull AIBlockingEventType eventType, @NotNull @NotNull IBooleanConditionSupplier predicate, @NotNull @NotNull IStateSupplier<S> action, int tickRate)
      Construct a special target.
      Parameters:
      eventType - the AISpecial State
      predicate - boolean predicate to check before executin the action
      action - action supplier which returns the next eventType
      tickRate - tickRate at which this target should be called
    • AIEventTarget

      public AIEventTarget(@NotNull @NotNull AIBlockingEventType eventType, @NotNull @NotNull IBooleanConditionSupplier predicate, @NotNull S IAIState, int tickRate)
    • AIEventTarget

      public AIEventTarget(@NotNull @NotNull AIBlockingEventType eventType, @NotNull @NotNull IStateSupplier<S> action, int tickRate)