PokéRogue
    Preparing search index...

    A generic speed-based priority queue of DynamicPhases

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    queue: T[] = []
    setOrder: undefined | BattlerIndex[]

    Methods

    • Removes the first element matching the condition

      Parameters

      • condition: (t: T) => boolean = ...

        An optional condition function (defaults to a function that always returns true)

      Returns boolean

      Whether a removal occurred