Bazaar developer reference

CvTerrainInfo::getMovementCost() const

Defined in
CvInfos.cpp, line 5449
Class
CvTerrainInfo
Hook name
CivHooks::CvTerrainInfo_getMovementCost

Hooks

static bool BeforeCvTerrainInfo_getMovementCost(const CvTerrainInfo* self, int& result);static void AfterCvTerrainInfo_getMovementCost(const CvTerrainInfo* self, int& result);static int ReplaceCvTerrainInfo_getMovementCost(int (*original)(const CvTerrainInfo*), const CvTerrainInfo* self);CivRegisterBefore<CivHooks::CvTerrainInfo_getMovementCost>(host, &BeforeCvTerrainInfo_getMovementCost);CivRegisterAfter<CivHooks::CvTerrainInfo_getMovementCost>(host, &AfterCvTerrainInfo_getMovementCost);CivRegisterReplace<CivHooks::CvTerrainInfo_getMovementCost>(host, &ReplaceCvTerrainInfo_getMovementCost);

Code

5449int CvTerrainInfo::getMovementCost() const5450{5451	return m_iMovementCost;5452}

Called by