Procedural Hexagon Grid Framework
 All Classes Namespaces Functions
PHG.Node Class Reference

Class for nodes, used for pathfinding and placing objects. More...

Public Member Functions

 Node (Vector3 vector3, NodeType nodeType, CellObject parentCO)
 Initializes node.
 
void AddParentCellObject (CellObject parentCO)
 Adds CellObject to parent list.
 
void AddNeighbour (Node node)
 Adds Node to neighbour list.
 

Static Public Member Functions

static void UpdateAllNodes ()
 Updates all the nodes and puts them in to the nodes dictionary.
 
static void DebugDrawNodeGrid ()
 Draws debug graph for nodes, lasts 5 seconds (very FPS intensive)
 

Public Attributes

Vector3 vector3
 
List< Nodeneighbours
 
List< CellObjectparentCellObjects
 
NodeType nodeType
 
bool occupied
 

Static Public Attributes

static Dictionary< Vector3, Nodenodes = new Dictionary<Vector3, Node>()
 

Detailed Description

Class for nodes, used for pathfinding and placing objects.


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