CvCombatInfo::setPlot(CvPlot *)
- Defined in
- CvStructs.cpp, line 280
- Class
- CvCombatInfo
- Hook name
CivHooks::CvCombatInfo_setPlot
Hooks
static bool BeforeCvCombatInfo_setPlot(CvCombatInfo* self, CvPlot* plot);static void AfterCvCombatInfo_setPlot(CvCombatInfo* self, CvPlot* plot);static void ReplaceCvCombatInfo_setPlot(void (*original)(CvCombatInfo*, CvPlot*), CvCombatInfo* self, CvPlot* plot);CivRegisterBefore<CivHooks::CvCombatInfo_setPlot>(host, &BeforeCvCombatInfo_setPlot);CivRegisterAfter<CivHooks::CvCombatInfo_setPlot>(host, &AfterCvCombatInfo_setPlot);CivRegisterReplace<CivHooks::CvCombatInfo_setPlot>(host, &ReplaceCvCombatInfo_setPlot);
Code
280void CvCombatInfo::setPlot(CvPlot* plot)281{282 m_pTargetPlot = plot;283}
Called by
- CvUnitCombat::GenerateAirCombatInfo(CvUnit &, CvUnit *, CvPlot &, CvCombatInfo *)
- CvUnitCombat::GenerateAirSweepCombatInfo(CvUnit &, CvUnit *, CvPlot &, CvCombatInfo *)
- CvUnitCombat::GenerateMeleeCombatInfo(CvUnit &, CvUnit *, CvPlot &, CvCombatInfo *)
- CvUnitCombat::GenerateNuclearCombatInfo(CvUnit &, CvPlot &, CvCombatInfo *)
- CvUnitCombat::GenerateRangedCombatInfo(CvCity &, CvUnit *, CvPlot &, CvCombatInfo *)
- CvUnitCombat::GenerateRangedCombatInfo(CvUnit &, CvUnit *, CvPlot &, CvCombatInfo *)