Bazaar developer reference

CvTwoLayerPathFinder::GetPartialMoveNode(int, int)

Defined in
CvAStar.cpp, line 2839
Class
CvTwoLayerPathFinder
Hook name
CivHooks::CvTwoLayerPathFinder_GetPartialMoveNode

Hooks

static bool BeforeCvTwoLayerPathFinder_GetPartialMoveNode(CvTwoLayerPathFinder* self, int iCol, int iRow, CvAStarNode*& result);static void AfterCvTwoLayerPathFinder_GetPartialMoveNode(CvTwoLayerPathFinder* self, int iCol, int iRow, CvAStarNode*& result);static CvAStarNode* ReplaceCvTwoLayerPathFinder_GetPartialMoveNode(CvAStarNode* (*original)(CvTwoLayerPathFinder*, int, int), CvTwoLayerPathFinder* self, int iCol, int iRow);CivRegisterBefore<CivHooks::CvTwoLayerPathFinder_GetPartialMoveNode>(host, &BeforeCvTwoLayerPathFinder_GetPartialMoveNode);CivRegisterAfter<CivHooks::CvTwoLayerPathFinder_GetPartialMoveNode>(host, &AfterCvTwoLayerPathFinder_GetPartialMoveNode);CivRegisterReplace<CivHooks::CvTwoLayerPathFinder_GetPartialMoveNode>(host, &ReplaceCvTwoLayerPathFinder_GetPartialMoveNode);

Code

2838/// Return a node from the second layer of A-star nodes (for the partial moves)2839CvAStarNode* CvTwoLayerPathFinder::GetPartialMoveNode(int iCol, int iRow)2840{2841	return &(m_ppaaPartialMoveNodes[iCol][iRow]);2842}

Called by