Bazaar developer reference

CvPlot::MovementCostNoZOC(const CvUnit *, const CvPlot *, int) const

Defined in
CvPlot.cpp, line 3138
Class
CvPlot
Hook name
CivHooks::CvPlot_MovementCostNoZOC

Hooks

static bool BeforeCvPlot_MovementCostNoZOC(const CvPlot* self, const CvUnit* pUnit, const CvPlot* pFromPlot, int iMovesRemaining, int& result);static void AfterCvPlot_MovementCostNoZOC(const CvPlot* self, const CvUnit* pUnit, const CvPlot* pFromPlot, int iMovesRemaining, int& result);static int ReplaceCvPlot_MovementCostNoZOC(int (*original)(const CvPlot*, const CvUnit*, const CvPlot*, int), const CvPlot* self, const CvUnit* pUnit, const CvPlot* pFromPlot, int iMovesRemaining);CivRegisterBefore<CivHooks::CvPlot_MovementCostNoZOC>(host, &BeforeCvPlot_MovementCostNoZOC);CivRegisterAfter<CivHooks::CvPlot_MovementCostNoZOC>(host, &AfterCvPlot_MovementCostNoZOC);CivRegisterReplace<CivHooks::CvPlot_MovementCostNoZOC>(host, &ReplaceCvPlot_MovementCostNoZOC);

Code

3138int CvPlot::MovementCostNoZOC(const CvUnit* pUnit, const CvPlot* pFromPlot, int iMovesRemaining /*= 0*/) const3139{3140	return CvUnitMovement::MovementCostNoZOC(pUnit, pFromPlot, this, pUnit->baseMoves(isWater()?DOMAIN_SEA:NO_DOMAIN), pUnit->maxMoves(), iMovesRemaining);3141}

Calls