Bazaar developer reference

CvCombatInfo::getInBorders(BattleUnitTypes) const

Defined in
CvStructs.cpp, line 447
Class
CvCombatInfo
Hook name
CivHooks::CvCombatInfo_getInBorders

Hooks

static bool BeforeCvCombatInfo_getInBorders(const CvCombatInfo* self, BattleUnitTypes unitType, bool& result);static void AfterCvCombatInfo_getInBorders(const CvCombatInfo* self, BattleUnitTypes unitType, bool& result);static bool ReplaceCvCombatInfo_getInBorders(bool (*original)(const CvCombatInfo*, BattleUnitTypes), const CvCombatInfo* self, BattleUnitTypes unitType);CivRegisterBefore<CivHooks::CvCombatInfo_getInBorders>(host, &BeforeCvCombatInfo_getInBorders);CivRegisterAfter<CivHooks::CvCombatInfo_getInBorders>(host, &AfterCvCombatInfo_getInBorders);CivRegisterReplace<CivHooks::CvCombatInfo_getInBorders>(host, &ReplaceCvCombatInfo_getInBorders);

Code

447bool CvCombatInfo::getInBorders(BattleUnitTypes unitType) const448{449	checkBattleUnitType(unitType);450	return m_bInBorders[unitType];451}

Calls

Called by