MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / CountOwnedIncludeDeploy

Function CountOwnedIncludeDeploy

src/Ext/House/Body.cpp:758–764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

756}
757#pragma region BuildLimitGroup
758int CountOwnedIncludeDeploy(const HouseClass* pThis, const TechnoTypeClass* pItem)
759{
760 int count = pThis->CountOwnedNow(pItem);
761 count += pItem->DeploysInto ? pThis->CountOwnedNow(pItem->DeploysInto) : 0;
762 count += pItem->UndeploysInto ? pThis->CountOwnedNow(pItem->UndeploysInto) : 0;
763 return count;
764}
765
766CanBuildResult HouseExt::BuildLimitGroupCheck(const HouseClass* pThis, const TechnoTypeClass* pItem, bool buildLimitOnly, bool includeQueued)
767{

Callers 1

BuildLimitGroupCheckMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected