Bazaar developer reference

CvDllTeam::IsAtWar(TeamTypes) const

Defined in
CvDllTeam.cpp, line 119
Class
CvDllTeam
Hook name
CivHooks::CvDllTeam_IsAtWar

Hooks

static bool BeforeCvDllTeam_IsAtWar(const CvDllTeam* self, TeamTypes eIndex, bool& result);static void AfterCvDllTeam_IsAtWar(const CvDllTeam* self, TeamTypes eIndex, bool& result);static bool ReplaceCvDllTeam_IsAtWar(bool (*original)(const CvDllTeam*, TeamTypes), const CvDllTeam* self, TeamTypes eIndex);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllTeam_IsAtWar::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllTeam_IsAtWar);host->RegisterHook(host->pluginIndex, CivHooks::CvDllTeam_IsAtWar::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllTeam_IsAtWar);host->RegisterHook(host->pluginIndex, CivHooks::CvDllTeam_IsAtWar::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllTeam_IsAtWar);

Code

119bool CvDllTeam::IsAtWar(TeamTypes eIndex) const120{121	return m_pTeam->isAtWar(eIndex);122}

Calls