C# Class Pathfinding.LevelGridNode

Inheritance: GraphNode
Show file Open project: henryj41043/TheUnseen Class Usage Examples

Public Properties

Property Type Description
height float

Protected Properties

Property Type Description
gridConnections uint
gridConnections ushort
gridFlags ushort
gridGraphs Pathfinding.LayerGridGraph[]
nodeInGridIndex int

Public Methods

Method Description
AddConnection ( GraphNode node, uint cost ) : void
ClearConnections ( bool alsoReverse ) : void
DeserializeNode ( GraphSerializationContext ctx ) : void
FloodFill ( Stack stack, uint region ) : void
GetConnection ( int i ) : bool
GetConnectionValue ( int dir ) : int
GetConnections ( GraphNodeDelegate del ) : void
GetGridGraph ( uint graphIndex ) : LayerGridGraph
GetPortal ( GraphNode other, List left, List right, bool backwards ) : bool
HasAnyGridConnections ( ) : bool
LevelGridNode ( AstarPath astar ) : UnityEngine
Open ( Path path, PathNode pathNode, PathHandler handler ) : void
RemoveConnection ( GraphNode node ) : void
ResetAllGridConnections ( ) : void
SerializeNode ( GraphSerializationContext ctx ) : void
SetConnectionValue ( int dir, int value ) : void
SetGridGraph ( int graphIndex, LayerGridGraph graph ) : void
SetPosition ( Int3 position ) : void
UpdateRecursiveG ( Path path, PathNode pathNode, PathHandler handler ) : void

Method Details

AddConnection() public method

public AddConnection ( GraphNode node, uint cost ) : void
node GraphNode
cost uint
return void

ClearConnections() public method

public ClearConnections ( bool alsoReverse ) : void
alsoReverse bool
return void

DeserializeNode() public method

public DeserializeNode ( GraphSerializationContext ctx ) : void
ctx Pathfinding.Serialization.GraphSerializationContext
return void

FloodFill() public method

public FloodFill ( Stack stack, uint region ) : void
stack Stack
region uint
return void

GetConnection() public method

public GetConnection ( int i ) : bool
i int
return bool

GetConnectionValue() public method

public GetConnectionValue ( int dir ) : int
dir int
return int

GetConnections() public method

public GetConnections ( GraphNodeDelegate del ) : void
del GraphNodeDelegate
return void

GetGridGraph() public static method

public static GetGridGraph ( uint graphIndex ) : LayerGridGraph
graphIndex uint
return LayerGridGraph

GetPortal() public method

public GetPortal ( GraphNode other, List left, List right, bool backwards ) : bool
other GraphNode
left List
right List
backwards bool
return bool

HasAnyGridConnections() public method

public HasAnyGridConnections ( ) : bool
return bool

LevelGridNode() public method

public LevelGridNode ( AstarPath astar ) : UnityEngine
astar AstarPath
return UnityEngine

Open() public method

public Open ( Path path, PathNode pathNode, PathHandler handler ) : void
path Path
pathNode PathNode
handler PathHandler
return void

RemoveConnection() public method

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

ResetAllGridConnections() public method

public ResetAllGridConnections ( ) : void
return void

SerializeNode() public method

public SerializeNode ( GraphSerializationContext ctx ) : void
ctx Pathfinding.Serialization.GraphSerializationContext
return void

SetConnectionValue() public method

public SetConnectionValue ( int dir, int value ) : void
dir int
value int
return void

SetGridGraph() public static method

public static SetGridGraph ( int graphIndex, LayerGridGraph graph ) : void
graphIndex int
graph LayerGridGraph
return void

SetPosition() public method

public SetPosition ( Int3 position ) : void
position Int3
return void

UpdateRecursiveG() public method

public UpdateRecursiveG ( Path path, PathNode pathNode, PathHandler handler ) : void
path Path
pathNode PathNode
handler PathHandler
return void

Property Details

gridConnections protected property

protected uint gridConnections
return uint

gridConnections protected property

protected ushort gridConnections
return ushort

gridFlags protected property

protected ushort gridFlags
return ushort

gridGraphs protected static property

protected static LayerGridGraph[],Pathfinding gridGraphs
return Pathfinding.LayerGridGraph[]

height public property

public float height
return float

nodeInGridIndex protected property

protected int nodeInGridIndex
return int