Platformer Pro  2.3.2
A platform game kit for Unity.
PlatformerPro.PriorityQueue Class Reference

A list that provides a queue like interface specifically for animation priorities. More...

Inheritance diagram for PlatformerPro.PriorityQueue:

Public Member Functions

int Peek ()
 Look at the first item in the queue. More...
 
int Dequeue ()
 Dequeues an item from the queue. More...
 
void Enqueue (int item)
 Enqueue the specified item. More...
 
void EnqueueAndPromote (int item)
 Enqueue the specified item and update all items that have a lower value to match this item (except the first). More...
 

Detailed Description

A list that provides a queue like interface specifically for animation priorities.

Member Function Documentation

◆ Dequeue()

int PlatformerPro.PriorityQueue.Dequeue ( )

Dequeues an item from the queue.

Returns
the item at front of queue or null (default(T)) if queue is empty.

◆ Enqueue()

void PlatformerPro.PriorityQueue.Enqueue ( int  item)

Enqueue the specified item.

Parameters
itemItem to add to queue.

◆ EnqueueAndPromote()

void PlatformerPro.PriorityQueue.EnqueueAndPromote ( int  item)

Enqueue the specified item and update all items that have a lower value to match this item (except the first).

Parameters
itemItem to add to queue.

◆ Peek()

int PlatformerPro.PriorityQueue.Peek ( )

Look at the first item in the queue.

Returns
The item at front of queue or 0 if queue is empty.

The documentation for this class was generated from the following file: