Constructors

Properties

PHASES: ((typeof LoginPhase | ((phase) => void))[] | (typeof SelectGenderPhase | ((phase) => void))[] | (typeof EncounterPhase | ((phase) => void))[] | (typeof PostSummonPhase | ((phase) => void))[] | (typeof SummonPhase | ((phase) => void))[] | (typeof ToggleDoublePositionPhase | ((phase) => void))[] | (typeof CheckSwitchPhase | ((phase) => void))[] | (typeof ShowAbilityPhase | ((phase) => void))[] | (typeof MessagePhase | ((phase) => void))[] | (typeof CommandPhase | ((phase) => void))[] | (typeof EnemyCommandPhase | ((phase) => void))[] | (typeof MovePhase | ((phase) => void))[] | (typeof MoveEffectPhase | ((phase) => void))[] | (typeof DamagePhase | ((phase) => void))[] | (typeof FaintPhase | ((phase) => void))[] | (typeof SelectModifierPhase | ((phase) => void))[] | (typeof StatChangePhase | ((phase) => void))[] | (typeof QuietFormChangePhase | ((phase) => void))[] | (typeof SwitchPhase | ((phase) => void))[] | (typeof SwitchSummonPhase | ((phase) => void))[])[] = ...

List of phases with their corresponding start methods.

endBySetMode: (typeof SelectGenderPhase | typeof CommandPhase)[] = ...
inProgress: any
interval: any
intervalRun: any
log: any
onHold: any
originalSetMode: any
originalSuperEnd: any
phaseFrom: any
phases: {} = {}

Type declaration

    promptInterval: any
    prompts: any
    scene: any

    Methods

    • Method to add an action to the next prompt.

      Parameters

      • phaseTarget: string

        The target phase for the prompt.

      • mode: Mode

        The mode of the UI.

      • callback: (() => void)

        The callback function to execute.

          • (): void
          • Returns void

      • expireFn: (() => void)

        The function to determine if the prompt has expired.

          • (): void
          • Returns void

      • awaitingActionInput: boolean = false

      Returns void

    • Restores the original state of phases and clears intervals.

      This function iterates through all phases and resets their start method to the original function stored in this.phases. Additionally, it clears the promptInterval and interval.

      Returns void

    • Method to run a phase with an optional skip function.

      Parameters

      • phaseTarget: any

        The phase to run.

      • Optional skipFn: any

        Optional skip function.

      Returns Promise<void>

      A promise that resolves when the phase is run.

    • Method to transition to a target phase.

      Parameters

      • phaseTo: any

        The phase to transition to.

      • runTarget: boolean = true

      Returns Promise<void>

      A promise that resolves when the transition is complete.