C# Class Pathfinding.LayerGridGraph

Inheritance: GridGraph, IRaycastableGraph, IUpdatableGraph
Afficher le fichier Open project: henryj41043/TheUnseen Class Usage Examples

Méthodes publiques

Свойство Type Description
nodeCellIndices int[]
nodes Pathfinding.LevelGridNode[]

Méthodes publiques

Méthode 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

Méthode Description
GetNearestNode ( Vector3 position, int x, int z, NNConstraint constraint ) : LevelGridNode

Method Details

AddLayers() public méthode

public AddLayers ( int count ) : void
count int
Résultat void

AddPortal() public méthode

public AddPortal ( GraphNode n1, GraphNode n2, List left, List right ) : void
n1 GraphNode
n2 GraphNode
left List
right List
Résultat void

AddPortal() public méthode

public AddPortal ( LevelGridNode n1, LevelGridNode n2, List left, List right ) : void
n1 LevelGridNode
n2 LevelGridNode
left List
right List
Résultat void

BuildFunnelCorridor() public méthode

public BuildFunnelCorridor ( List path, int sIndex, int eIndex, List left, List right ) : void
path List
sIndex int
eIndex int
left List
right List
Résultat void

CalculateConnections() public méthode

public CalculateConnections ( GraphNode nodes, GraphNode node, int x, int z, int layerIndex ) : void
nodes GraphNode
node GraphNode
x int
z int
layerIndex int
Résultat void

CheckConnection() public méthode

public CheckConnection ( LevelGridNode node, int dir ) : bool
node LevelGridNode
dir int
Résultat bool

DeserializeExtraInfo() public méthode

public DeserializeExtraInfo ( GraphSerializationContext ctx ) : void
ctx Pathfinding.Serialization.GraphSerializationContext
Résultat void

ErodeWalkableArea() public méthode

public ErodeWalkableArea ( int xmin, int zmin, int xmax, int zmax ) : void
xmin int
zmin int
xmax int
zmax int
Résultat void

GetNearest() public méthode

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

GetNearestForce() public méthode

public GetNearestForce ( Vector3 position, NNConstraint constraint ) : NNInfo
position UnityEngine.Vector3
constraint NNConstraint
Résultat NNInfo

GetNodes() public méthode

public GetNodes ( GraphNodeDelegateCancelable del ) : void
del GraphNodeDelegateCancelable
Résultat void

Linecast() public méthode

public Linecast ( Vector3 _a, Vector3 _b ) : bool
_a UnityEngine.Vector3
_b UnityEngine.Vector3
Résultat bool

Linecast() public méthode

public Linecast ( Vector3 _a, Vector3 _b, GraphNode hint ) : bool
_a UnityEngine.Vector3
_b UnityEngine.Vector3
hint GraphNode
Résultat bool

Linecast() public méthode

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

OnDestroy() public méthode

public OnDestroy ( ) : void
Résultat void

OnDrawGizmos() public méthode

public OnDrawGizmos ( bool drawNodes ) : void
drawNodes bool
Résultat void

PostDeserialization() public méthode

public PostDeserialization ( ) : void
Résultat void

RecalculateCell() public méthode

public RecalculateCell ( int x, int z, bool preserveExistingNodes ) : bool
x int
z int
preserveExistingNodes bool
Résultat bool

RemoveGridGraphFromStatic() public méthode

public RemoveGridGraphFromStatic ( ) : void
Résultat void

ScanInternal() public méthode

public ScanInternal ( OnScanStatus status ) : void
status OnScanStatus
Résultat void

SerializeExtraInfo() public méthode

public SerializeExtraInfo ( GraphSerializationContext ctx ) : void
ctx Pathfinding.Serialization.GraphSerializationContext
Résultat void

SnappedLinecast() public méthode

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

UpdateArea() public méthode

public UpdateArea ( GraphUpdateObject o ) : void
o GraphUpdateObject
Résultat void

UpdatePenalty() public méthode

public UpdatePenalty ( LevelGridNode node ) : void
node LevelGridNode
Résultat void

Property Details

nodeCellIndices public_oe property

public int[] nodeCellIndices
Résultat int[]

nodes public_oe property

public LevelGridNode[],Pathfinding nodes
Résultat Pathfinding.LevelGridNode[]