Minetest  5.4.0
GridNodeContainer Class Referenceabstract

Abstract class to manage the map data. More...

+ Inheritance diagram for GridNodeContainer:
+ Collaboration diagram for GridNodeContainer:

Public Member Functions

virtual PathGridnodeaccess (v3s16 p)=0
 
virtual ~GridNodeContainer ()=default
 

Protected Member Functions

void initNode (v3s16 ipos, PathGridnode *p_node)
 

Protected Attributes

Pathfinderm_pathf
 

Detailed Description

Abstract class to manage the map data.

Constructor & Destructor Documentation

◆ ~GridNodeContainer()

virtual GridNodeContainer::~GridNodeContainer ( )
virtualdefault

Member Function Documentation

◆ access()

virtual PathGridnode& GridNodeContainer::access ( v3s16  p)
pure virtual

Implemented in MapGridNodeContainer, and ArrayGridNodeContainer.

Referenced by Pathfinder::getIdxElem(), and Pathfinder::getIndexElement().

+ Here is the caller graph for this function:

◆ initNode()

void GridNodeContainer::initNode ( v3s16  ipos,
PathGridnode p_node 
)
protected

References Pathfinder::calcCost(), CONTENT_IGNORE, DEBUG_OUT, DIR_XM, DIR_XP, DIR_ZM, DIR_ZP, PathGridnode::directions, NodeDefManager::get(), Map::getNode(), Pathfinder::getRealPos(), Pathfinder::m_map, Pathfinder::m_ndef, m_pathf, Pathfinder::m_prefetch, MapNode::param0, PathGridnode::pos, PP, PathGridnode::type, PathGridnode::valid, and ContentFeatures::walkable.

Referenced by ArrayGridNodeContainer::ArrayGridNodeContainer(), and MapGridNodeContainer::access().

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

Member Data Documentation

◆ m_pathf


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