Bazaar developer reference

CvCity::isProductionProject() const

Defined in
CvCity.cpp, line 3903
Class
CvCity
Hook name
CivHooks::CvCity_isProductionProject

Hooks

static bool BeforeCvCity_isProductionProject(const CvCity* self, bool& result);static void AfterCvCity_isProductionProject(const CvCity* self, bool& result);static bool ReplaceCvCity_isProductionProject(bool (*original)(const CvCity*), const CvCity* self);CivRegisterBefore<CivHooks::CvCity_isProductionProject>(host, &BeforeCvCity_isProductionProject);CivRegisterAfter<CivHooks::CvCity_isProductionProject>(host, &AfterCvCity_isProductionProject);CivRegisterReplace<CivHooks::CvCity_isProductionProject>(host, &ReplaceCvCity_isProductionProject);

Code

3903bool CvCity::isProductionProject() const3904{3905	VALIDATE_OBJECT3906	const OrderData* pOrderNode = headOrderQueueNode();39073908	if(pOrderNode != NULL)3909	{3910		return (pOrderNode->eOrderType == ORDER_CREATE);3911	}39123913	return false;3914}

Calls

Called by