C# Class Pathfinding.GridGraph

Inheritance: NavGraph, IUpdatableGraph
Mostrar archivo Open project: austinshenk/Binary Class Usage Examples

Public Properties

Property Type Description
bounds UnityEngine.Bounds
boundsMatrix UnityEngine.Matrix4x4
boundsMatrix2 UnityEngine.Matrix4x4
depth int
getNearestForceOverlap int
scans int
size UnityEngine.Vector2
width int

Public Methods

Method Description
AddPortal ( GridNode n1, GridNode n2, List left, List right ) : void
AddPortal ( Pathfinding.Node n1, Pathfinding.Node n2, List left, List right ) : void
BuildFunnelCorridor ( List path, int sIndex, int eIndex, List left, List right ) : void
CalculateConnections ( GridNode node ) : void
CalculateConnections ( Pathfinding.Node nodes, int x, int z, GridNode node ) : void
CheckConnection ( GridNode node, int dir ) : bool
CreateNodes ( int number ) : Pathfinding.Node[]
DeSerializeSettings ( AstarSerializer serializer ) : void
ErodeWalkableArea ( ) : void
ErodeWalkableArea ( int xmin, int zmin, int xmax, int zmax ) : void
GenerateMatrix ( ) : void
GetBoundsMinMax ( Bounds b, Matrix4x4 matrix, Vector3 &min, Vector3 &max ) : void
GetNearest ( Vector3 position, NNConstraint constraint, Pathfinding.Node hint ) : NNInfo
GetNearestForce ( Vector3 position, NNConstraint constraint ) : NNInfo
GetNodesInArea ( Bounds b ) : List
GetNodesInArea ( GraphUpdateShape shape ) : List
GridGraph ( ) : System.Collections
IsValidConnection ( GridNode n1, GridNode n2 ) : bool
OnDestroy ( ) : void
OnDrawGizmos ( bool drawNodes ) : void
OnPostScan ( AstarPath script ) : void
PostDeserialization ( ) : void
RemoveGridGraphFromStatic ( ) : void
Scan ( ) : void
SerializeSettings ( AstarSerializer serializer ) : void
SetUpOffsetsAndCosts ( ) : void
UpdateArea ( GraphUpdateObject o ) : void
UpdateNodePositionCollision ( Pathfinding.Node node, int x, int z ) : void
UpdateSizeFromWidthDepth ( ) : void

Private Methods

Method Description
DeSerializeNodes ( Pathfinding.Node nodes, AstarSerializer serializer ) : void
GetNodesInArea ( Bounds b, GraphUpdateShape shape ) : List
SerializeNodes ( Pathfinding.Node nodes, AstarSerializer serializer ) : void

Method Details

AddPortal() public method

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

AddPortal() public method

public AddPortal ( Pathfinding.Node n1, Pathfinding.Node n2, List left, List right ) : void
n1 Pathfinding.Node
n2 Pathfinding.Node
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 static method

public static CalculateConnections ( GridNode node ) : void
node GridNode
return void

CalculateConnections() public method

public CalculateConnections ( Pathfinding.Node nodes, int x, int z, GridNode node ) : void
nodes Pathfinding.Node
x int
z int
node GridNode
return void

CheckConnection() public method

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

CreateNodes() public method

public CreateNodes ( int number ) : Pathfinding.Node[]
number int
return Pathfinding.Node[]

DeSerializeSettings() public method

public DeSerializeSettings ( AstarSerializer serializer ) : void
serializer AstarSerializer
return void

ErodeWalkableArea() public method

public ErodeWalkableArea ( ) : void
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

GenerateMatrix() public method

public GenerateMatrix ( ) : void
return void

GetBoundsMinMax() public method

public GetBoundsMinMax ( Bounds b, Matrix4x4 matrix, Vector3 &min, Vector3 &max ) : void
b UnityEngine.Bounds
matrix UnityEngine.Matrix4x4
min UnityEngine.Vector3
max UnityEngine.Vector3
return void

GetNearest() public method

public GetNearest ( Vector3 position, NNConstraint constraint, Pathfinding.Node hint ) : NNInfo
position UnityEngine.Vector3
constraint NNConstraint
hint Pathfinding.Node
return NNInfo

GetNearestForce() public method

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

GetNodesInArea() public method

public GetNodesInArea ( Bounds b ) : List
b UnityEngine.Bounds
return List

GetNodesInArea() public method

public GetNodesInArea ( GraphUpdateShape shape ) : List
shape GraphUpdateShape
return List

GridGraph() public method

public GridGraph ( ) : System.Collections
return System.Collections

IsValidConnection() public method

public IsValidConnection ( GridNode n1, GridNode n2 ) : bool
n1 GridNode
n2 GridNode
return bool

OnDestroy() public method

public OnDestroy ( ) : void
return void

OnDrawGizmos() public method

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

OnPostScan() public method

public OnPostScan ( AstarPath script ) : void
script AstarPath
return void

PostDeserialization() public method

public PostDeserialization ( ) : void
return void

RemoveGridGraphFromStatic() public method

public RemoveGridGraphFromStatic ( ) : void
return void

Scan() public method

public Scan ( ) : void
return void

SerializeSettings() public method

public SerializeSettings ( AstarSerializer serializer ) : void
serializer AstarSerializer
return void

SetUpOffsetsAndCosts() public method

public SetUpOffsetsAndCosts ( ) : void
return void

UpdateArea() public method

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

UpdateNodePositionCollision() public method

public UpdateNodePositionCollision ( Pathfinding.Node node, int x, int z ) : void
node Pathfinding.Node
x int
z int
return void

UpdateSizeFromWidthDepth() public method

public UpdateSizeFromWidthDepth ( ) : void
return void

Property Details

bounds public_oe property

public Bounds,UnityEngine bounds
return UnityEngine.Bounds

boundsMatrix public_oe property

public Matrix4x4,UnityEngine boundsMatrix
return UnityEngine.Matrix4x4

boundsMatrix2 public_oe property

public Matrix4x4,UnityEngine boundsMatrix2
return UnityEngine.Matrix4x4

depth public_oe property

public int depth
return int

getNearestForceOverlap public_oe property

public int getNearestForceOverlap
return int

scans public_oe property

public int scans
return int

size public_oe property

public Vector2,UnityEngine size
return UnityEngine.Vector2

width public_oe property

public int width
return int