pokemon-rogue-battle
    Preparing search index...

    Class PhasePriorityQueueAbstract

    Stores a list of Phases

    Dynamically updates ordering to always pop the highest "priority", based on implementation of reorder

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    queue: Phase[]

    Methods

    • Attempt to remove one or more Phases from the current queue.

      Parameters

      • phaseFilter: (phase: Phase) => boolean

        The function to select phases for removal

      • removeCount: number | "all" = 1

        The maximum number of phases to remove, or all to remove all matching phases; default 1

      Returns number

      The number of successfully removed phases

      Remove this eventually once the patchwork bug this is used for is fixed