PokéRogue
    Preparing search index...

    A generic speed-based priority queue of DynamicPhases.

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    queue: T[] = []

    The items in the queue.

    Methods

    • Sealed

      Reorder the queue before removing and returning the highest priority element.

      Returns T | undefined

      The front-most element of the queue after sorting, or undefined if the queue is empty.

    • Remove the first element in the queue matching a given condition.

      Parameters

      • condition: (t: T) => boolean

        If provided, will restrict the removal to only entries matching the given condition

      Returns boolean

      Whether a removal occurred