Bazaar developer reference

CvUnit::onMap() const

Defined in
CvUnit.cpp, line 16483
Class
CvUnit
Hook name
CivHooks::CvUnit_onMap

Hooks

static bool BeforeCvUnit_onMap(const CvUnit* self, bool& result);static void AfterCvUnit_onMap(const CvUnit* self, bool& result);static bool ReplaceCvUnit_onMap(bool (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_onMap>(host, &BeforeCvUnit_onMap);CivRegisterAfter<CivHooks::CvUnit_onMap>(host, &AfterCvUnit_onMap);CivRegisterReplace<CivHooks::CvUnit_onMap>(host, &ReplaceCvUnit_onMap);

Code

16483bool CvUnit::onMap() const16484{16485	VALIDATE_OBJECT16486	return (plot() != NULL);16487}

Calls