C# Class Pathfinding.BinaryHeap

Mostrar archivo Open project: henryj41043/TheUnseen Class Usage Examples

Public Properties

Property Type Description
binaryHeap Pathfinding.GraphNode[]
numberOfItems int

Public Methods

Method Description
Add ( GraphNode node ) : void
BinaryHeap ( int numberOfElements ) : UnityEngine
BubbleDown ( GraphNode node ) : void
Rearrange ( Node node ) : void
Rebuild ( ) : void
Remove ( ) : GraphNode
ToString ( ) : string

Private Methods

Method Description
WriteBranch ( int index, int depth, System text ) : void

Method Details

Add() public method

public Add ( GraphNode node ) : void
node GraphNode
return void

BinaryHeap() public method

public BinaryHeap ( int numberOfElements ) : UnityEngine
numberOfElements int
return UnityEngine

BubbleDown() public method

public BubbleDown ( GraphNode node ) : void
node GraphNode
return void

Rearrange() public method

public Rearrange ( Node node ) : void
node Node
return void

Rebuild() public method

public Rebuild ( ) : void
return void

Remove() public method

public Remove ( ) : GraphNode
return GraphNode

ToString() public method

public ToString ( ) : string
return string

Property Details

binaryHeap public_oe property

public GraphNode[],Pathfinding binaryHeap
return Pathfinding.GraphNode[]

numberOfItems public_oe property

public int numberOfItems
return int