Bazaar developer reference

CvTeam::IsMinorCivWarmonger() const

Defined in
CvTeam.cpp, line 2558
Class
CvTeam
Hook name
CivHooks::CvTeam_IsMinorCivWarmonger

Hooks

static bool BeforeCvTeam_IsMinorCivWarmonger(const CvTeam* self, bool& result);static void AfterCvTeam_IsMinorCivWarmonger(const CvTeam* self, bool& result);static bool ReplaceCvTeam_IsMinorCivWarmonger(bool (*original)(const CvTeam*), const CvTeam* self);CivRegisterBefore<CivHooks::CvTeam_IsMinorCivWarmonger>(host, &BeforeCvTeam_IsMinorCivWarmonger);CivRegisterAfter<CivHooks::CvTeam_IsMinorCivWarmonger>(host, &AfterCvTeam_IsMinorCivWarmonger);CivRegisterReplace<CivHooks::CvTeam_IsMinorCivWarmonger>(host, &ReplaceCvTeam_IsMinorCivWarmonger);

Code

2557/// Has this player attacked enough Minors to be considered a world threat? (Minors band together and declare war)2558bool CvTeam::IsMinorCivWarmonger() const2559{2560	// Player has attacked enough Minors that an Alliance has formed2561	if(GetNumMinorCivsAttacked() >= /*4*/ GC.getMINOR_CIV_WARMONGER_THRESHOLD())2562		return true;25632564	return false;2565}

Calls

Called by