C# Class Pathfinding.LayerGridGraph

Inheritance: GridGraph, IRaycastableGraph, IUpdatableGraph
Mostrar archivo Open project: henryj41043/TheUnseen Class Usage Examples

Public Properties

Property Type Description
nodeCellIndices int[]
nodes Pathfinding.LevelGridNode[]

Public Methods

Method Description
AddLayers ( int count ) : void
AddPortal ( GraphNode n1, GraphNode n2, List left, List right ) : void
AddPortal ( LevelGridNode n1, LevelGridNode n2, List left, List right ) : void
BuildFunnelCorridor ( List path, int sIndex, int eIndex, List left, List right ) : void
CalculateConnections ( GraphNode nodes, GraphNode node, int x, int z, int layerIndex ) : void
CheckConnection ( LevelGridNode node, int dir ) : bool
DeserializeExtraInfo ( GraphSerializationContext ctx ) : void
ErodeWalkableArea ( int xmin, int zmin, int xmax, int zmax ) : void
GetNearest ( Vector3 position, NNConstraint constraint, GraphNode hint = null ) : NNInfo
GetNearestForce ( Vector3 position, NNConstraint constraint ) : NNInfo
GetNodes ( GraphNodeDelegateCancelable del ) : void
Linecast ( Vector3 _a, Vector3 _b ) : bool
Linecast ( Vector3 _a, Vector3 _b, GraphNode hint ) : bool
Linecast ( Vector3 _a, Vector3 _b, GraphNode hint, GraphHitInfo &hit ) : bool
OnDestroy ( ) : void
OnDrawGizmos ( bool drawNodes ) : void
PostDeserialization ( ) : void
RecalculateCell ( int x, int z, bool preserveExistingNodes ) : bool
RemoveGridGraphFromStatic ( ) : void
ScanInternal ( OnScanStatus status ) : void
SerializeExtraInfo ( GraphSerializationContext ctx ) : void
SnappedLinecast ( Vector3 _a, Vector3 _b, GraphNode hint, GraphHitInfo &hit ) : bool
UpdateArea ( GraphUpdateObject o ) : void
UpdatePenalty ( LevelGridNode node ) : void

Private Methods

Method Description
GetNearestNode ( Vector3 position, int x, int z, NNConstraint constraint ) : LevelGridNode

Method Details

AddLayers() public method

public AddLayers ( int count ) : void
count int
return void

AddPortal() public method

public AddPortal ( GraphNode n1, GraphNode n2, List left, List right ) : void
n1 GraphNode
n2 GraphNode
left List
right List
return void

AddPortal() public method

public AddPortal ( LevelGridNode n1, LevelGridNode n2, List left, List right ) : void
n1 LevelGridNode
n2 LevelGridNode
left List
right List
return void

BuildFunnelCorridor() public method

public BuildFunnelCorridor ( List path, int sIndex, int eIndex, List left, List right ) : void
path List
sIndex int
eIndex int
left List
right List
return void

CalculateConnections() public method

public CalculateConnections ( GraphNode nodes, GraphNode node, int x, int z, int layerIndex ) : void
nodes GraphNode
node GraphNode
x int
z int
layerIndex int
return void

CheckConnection() public method

public CheckConnection ( LevelGridNode node, int dir ) : bool
node LevelGridNode
dir int
return bool

DeserializeExtraInfo() public method

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

ErodeWalkableArea() public method

public ErodeWalkableArea ( int xmin, int zmin, int xmax, int zmax ) : void
xmin int
zmin int
xmax int
zmax int
return void

GetNearest() public method

public GetNearest ( Vector3 position, NNConstraint constraint, GraphNode hint = null ) : NNInfo
position UnityEngine.Vector3
constraint NNConstraint
hint GraphNode
return NNInfo

GetNearestForce() public method

public GetNearestForce ( Vector3 position, NNConstraint constraint ) : NNInfo
position UnityEngine.Vector3
constraint NNConstraint
return NNInfo

GetNodes() public method

public GetNodes ( GraphNodeDelegateCancelable del ) : void
del GraphNodeDelegateCancelable
return void

Linecast() public method

public Linecast ( Vector3 _a, Vector3 _b ) : bool
_a UnityEngine.Vector3
_b UnityEngine.Vector3
return bool

Linecast() public method

public Linecast ( Vector3 _a, Vector3 _b, GraphNode hint ) : bool
_a UnityEngine.Vector3
_b UnityEngine.Vector3
hint GraphNode
return bool

Linecast() public method

public Linecast ( Vector3 _a, Vector3 _b, GraphNode hint, GraphHitInfo &hit ) : bool
_a UnityEngine.Vector3
_b UnityEngine.Vector3
hint GraphNode
hit GraphHitInfo
return bool

OnDestroy() public method

public OnDestroy ( ) : void
return void

OnDrawGizmos() public method

public OnDrawGizmos ( bool drawNodes ) : void
drawNodes bool
return void

PostDeserialization() public method

public PostDeserialization ( ) : void
return void

RecalculateCell() public method

public RecalculateCell ( int x, int z, bool preserveExistingNodes ) : bool
x int
z int
preserveExistingNodes bool
return bool

RemoveGridGraphFromStatic() public method

public RemoveGridGraphFromStatic ( ) : void
return void

ScanInternal() public method

public ScanInternal ( OnScanStatus status ) : void
status OnScanStatus
return void

SerializeExtraInfo() public method

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

SnappedLinecast() public method

public SnappedLinecast ( Vector3 _a, Vector3 _b, GraphNode hint, GraphHitInfo &hit ) : bool
_a UnityEngine.Vector3
_b UnityEngine.Vector3
hint GraphNode
hit GraphHitInfo
return bool

UpdateArea() public method

public UpdateArea ( GraphUpdateObject o ) : void
o GraphUpdateObject
return void

UpdatePenalty() public method

public UpdatePenalty ( LevelGridNode node ) : void
node LevelGridNode
return void

Property Details

nodeCellIndices public_oe property

public int[] nodeCellIndices
return int[]

nodes public_oe property

public LevelGridNode[],Pathfinding nodes
return Pathfinding.LevelGridNode[]