Bazaar developer reference

CvAIOperation::HasOneMoreSlotToFill() const

Defined in
CvAIOperation.cpp, line 1093
Class
CvAIOperation
Hook name
CivHooks::CvAIOperation_HasOneMoreSlotToFill

Hooks

static bool BeforeCvAIOperation_HasOneMoreSlotToFill(const CvAIOperation* self, bool& result);static void AfterCvAIOperation_HasOneMoreSlotToFill(const CvAIOperation* self, bool& result);static bool ReplaceCvAIOperation_HasOneMoreSlotToFill(bool (*original)(const CvAIOperation*), const CvAIOperation* self);CivRegisterBefore<CivHooks::CvAIOperation_HasOneMoreSlotToFill>(host, &BeforeCvAIOperation_HasOneMoreSlotToFill);CivRegisterAfter<CivHooks::CvAIOperation_HasOneMoreSlotToFill>(host, &AfterCvAIOperation_HasOneMoreSlotToFill);CivRegisterReplace<CivHooks::CvAIOperation_HasOneMoreSlotToFill>(host, &ReplaceCvAIOperation_HasOneMoreSlotToFill);

Code

1093bool CvAIOperation::HasOneMoreSlotToFill() const1094{1095	if(m_viListOfUnitsWeStillNeedToBuild.size() == 1 && m_eCurrentState  == AI_OPERATION_STATE_RECRUITING_UNITS)1096	{1097		return true;1098	}10991100	return false;1101}

Calls

Called by