Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
ArrayGridNodeContainer Class Reference
+ Inheritance diagram for ArrayGridNodeContainer:
+ Collaboration diagram for ArrayGridNodeContainer:

Public Member Functions

virtual ~ArrayGridNodeContainer ()=default
 
 ArrayGridNodeContainer (Pathfinder *pathf, v3s16 dimensions)
 
virtual PathGridnodeaccess (v3s16 p)
 
- Public Member Functions inherited from GridNodeContainer
virtual ~GridNodeContainer ()=default
 

Private Attributes

int m_x_stride
 
int m_y_stride
 
std::vector< PathGridnodem_nodes_array
 

Additional Inherited Members

- Protected Member Functions inherited from GridNodeContainer
void initNode (v3s16 ipos, PathGridnode *p_node)
 
- Protected Attributes inherited from GridNodeContainer
Pathfinderm_pathf
 

Constructor & Destructor Documentation

◆ ~ArrayGridNodeContainer()

virtual ArrayGridNodeContainer::~ArrayGridNodeContainer ( )
virtualdefault

◆ ArrayGridNodeContainer()

ArrayGridNodeContainer::ArrayGridNodeContainer ( Pathfinder * pathf,
v3s16 dimensions )

References access(), INFO_TARGET, GridNodeContainer::initNode(), m_nodes_array, and GridNodeContainer::m_pathf.

+ Here is the call graph for this function:

Member Function Documentation

◆ access()

PathGridnode & ArrayGridNodeContainer::access ( v3s16 p)
virtual

Implements GridNodeContainer.

References m_nodes_array, m_x_stride, m_y_stride, and p().

Referenced by ArrayGridNodeContainer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_nodes_array

std::vector<PathGridnode> ArrayGridNodeContainer::m_nodes_array
private

Referenced by ArrayGridNodeContainer(), and access().

◆ m_x_stride

int ArrayGridNodeContainer::m_x_stride
private

Referenced by access().

◆ m_y_stride

int ArrayGridNodeContainer::m_y_stride
private

Referenced by access().


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