Bazaar developer reference

CvMinorCivAI::IsAtWarWithPlayersTeam(PlayerTypes)

Defined in
CvMinorCivAI.cpp, line 10563
Class
CvMinorCivAI
Hook name
CivHooks::CvMinorCivAI_IsAtWarWithPlayersTeam

Hooks

static bool BeforeCvMinorCivAI_IsAtWarWithPlayersTeam(CvMinorCivAI* self, PlayerTypes ePlayer, bool& result);static void AfterCvMinorCivAI_IsAtWarWithPlayersTeam(CvMinorCivAI* self, PlayerTypes ePlayer, bool& result);static bool ReplaceCvMinorCivAI_IsAtWarWithPlayersTeam(bool (*original)(CvMinorCivAI*, PlayerTypes), CvMinorCivAI* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvMinorCivAI_IsAtWarWithPlayersTeam>(host, &BeforeCvMinorCivAI_IsAtWarWithPlayersTeam);CivRegisterAfter<CivHooks::CvMinorCivAI_IsAtWarWithPlayersTeam>(host, &AfterCvMinorCivAI_IsAtWarWithPlayersTeam);CivRegisterReplace<CivHooks::CvMinorCivAI_IsAtWarWithPlayersTeam>(host, &ReplaceCvMinorCivAI_IsAtWarWithPlayersTeam);

Code

10562/// At war with a Player?10563bool CvMinorCivAI::IsAtWarWithPlayersTeam(PlayerTypes ePlayer)10564{10565	return GET_TEAM(GET_PLAYER(ePlayer).getTeam()).isAtWar(GetPlayer()->getTeam());10566}

Calls

Called by