Bazaar developer reference

CvUnit::isFighting() const

Defined in
CvUnit.cpp, line 11965
Class
CvUnit
Hook name
CivHooks::CvUnit_isFighting

Hooks

static bool BeforeCvUnit_isFighting(const CvUnit* self, bool& result);static void AfterCvUnit_isFighting(const CvUnit* self, bool& result);static bool ReplaceCvUnit_isFighting(bool (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_isFighting>(host, &BeforeCvUnit_isFighting);CivRegisterAfter<CivHooks::CvUnit_isFighting>(host, &AfterCvUnit_isFighting);CivRegisterReplace<CivHooks::CvUnit_isFighting>(host, &ReplaceCvUnit_isFighting);

Code

11965bool CvUnit::isFighting() const11966{11967	VALIDATE_OBJECT11968	return (getCombatUnit() != NULL || getCombatCity() != NULL);11969}

Calls

Called by