Bazaar developer reference

CvAINavalOperation::GetDeployRange() const

Defined in
CvAIOperation.cpp, line 3785
Class
CvAINavalOperation
Hook name
CivHooks::CvAINavalOperation_GetDeployRange
Overrides
CvAIEnemyTerritoryOperation::GetDeployRange() const
Overridden by
CvAIOperationPureNavalCityAttack::GetDeployRange() const

Hooks

static bool BeforeCvAINavalOperation_GetDeployRange(const CvAINavalOperation* self, int& result);static void AfterCvAINavalOperation_GetDeployRange(const CvAINavalOperation* self, int& result);static int ReplaceCvAINavalOperation_GetDeployRange(int (*original)(const CvAINavalOperation*), const CvAINavalOperation* self);CivRegisterBefore<CivHooks::CvAINavalOperation_GetDeployRange>(host, &BeforeCvAINavalOperation_GetDeployRange);CivRegisterAfter<CivHooks::CvAINavalOperation_GetDeployRange>(host, &AfterCvAINavalOperation_GetDeployRange);CivRegisterReplace<CivHooks::CvAINavalOperation_GetDeployRange>(host, &ReplaceCvAINavalOperation_GetDeployRange);

Code

3784/// How close to target do we end up?3785int CvAINavalOperation::GetDeployRange() const3786{3787	return GC.getAI_OPERATIONAL_NAVAL_BOMBARDMENT_DEPLOY_RANGE();3788}

Calls

Called by