Class AIOneTimeEventTarget<S extends IState>

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

public class AIOneTimeEventTarget<S extends IState> extends TickingOneTimeEvent<S>
One time usage AITarget, unregisters itself after usage
  • Constructor Details

    • AIOneTimeEventTarget

      public AIOneTimeEventTarget(@NotNull @NotNull IBooleanConditionSupplier predicate, @NotNull @NotNull IStateSupplier<S> action)
      Event to trigger a one time transition.
      Parameters:
      predicate - which has to be true to execute
      action - Supplier for the state to transition into
    • AIOneTimeEventTarget

      public AIOneTimeEventTarget(@NotNull @NotNull IBooleanConditionSupplier predicate, @NotNull S state)
      Event to trigger a one time transition.
      Parameters:
      predicate - which has to be true to execute
      state - state to transition into
    • AIOneTimeEventTarget

      public AIOneTimeEventTarget(@NotNull @NotNull IStateSupplier<S> action)
      Event to trigger a one time transition.
      Parameters:
      action - Supplier for the state to transition into
    • AIOneTimeEventTarget

      public AIOneTimeEventTarget(@NotNull S state)
      Event to trigger a one time transition.
      Parameters:
      state - state to transition into