SealedRemoves all elements from the queue
Optionalcondition: (t: PostSummonPhase) => booleanAn element matching the condition function
Optionalcondition: (t: PostSummonPhase) => booleanWhether an element matching the condition function exists
SealedWhether the queue is empty
SealedCalls reorder and shifts the queue
The front element of the queue after sorting, or undefined if the queue is empty
PrivatequeueQueues all necessary PostSummonActivateAbilityPhases for each pushed PostSummonPhase
The PostSummonPhase that was pushed onto the queue
Removes the first element matching the condition
An optional condition function (defaults to a function that always returns true)
Whether a removal occurred
ProtectedreorderSorts the elements in the queue
Priority Queue for
PostSummonPhaseandPostSummonActivateAbilityPhaseOrders phases first by ability priority, then by the Pokemon's effective speed