A* Pathfinding Project  4.0.8
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
BlockManager.TraversalProvider Class Reference

Blocks nodes according to a BlockManager. More...

Detailed Description

Blocks nodes according to a BlockManager.

Public Member Functions

 TraversalProvider (BlockManager blockManager, BlockMode mode, List< SingleNodeBlocker > selector)
 
bool CanTraverse (Path path, GraphNode node)
 
uint GetTraversalCost (Path path, GraphNode node)
 
- Public Member Functions inherited from ITraversalProvider
bool CanTraverse (Path path, GraphNode node)
 
uint GetTraversalCost (Path path, GraphNode node)
 

Properties

BlockMode mode [get, set]
 Affects which nodes are considered blocked.
 

Private Attributes

readonly BlockManager blockManager
 Holds information about which nodes are occupied.
 
readonly List< SingleNodeBlockerselector
 Blockers for this path.
 

Constructor & Destructor Documentation

TraversalProvider ( BlockManager  blockManager,
BlockMode  mode,
List< SingleNodeBlocker selector 
)

Member Function Documentation

bool CanTraverse ( Path  path,
GraphNode  node 
)
uint GetTraversalCost ( Path  path,
GraphNode  node 
)

Member Data Documentation

readonly BlockManager blockManager
private

Holds information about which nodes are occupied.

readonly List<SingleNodeBlocker> selector
private

Blockers for this path.

The effect depends on mode.

Note that having a large selector has a performance cost.

See Also
mode

Property Documentation

BlockMode mode
getset

Affects which nodes are considered blocked.


The documentation for this class was generated from the following file: