public int GetTradeableCopiesOfResourceForCiv(IResourceDefinition resource, ICivilization civ) { int extractedCopies = ExtractionLogic.GetExtractedCopiesOfResourceForCiv(resource, civ); int exportedCopies = GetExportedCopiesOfResourceForCiv(resource, civ); int lockedCopies = LockingCanon.GetLockedCopiesOfResourceForCiv(resource, civ); return(extractedCopies - exportedCopies - lockedCopies); }
public int GetFreeCopiesOfResourceForCiv(IResourceDefinition resource, ICivilization civ) { return (ExtractionLogic.GetExtractedCopiesOfResourceForCiv(resource, civ) + TransferCanon.GetImportedCopiesOfResourceForCiv(resource, civ) - TransferCanon.GetExportedCopiesOfResourceForCiv(resource, civ) - LockingCanon.GetLockedCopiesOfResourceForCiv(resource, civ)); }