import { Cards } from "../utils/cards" ; import { SetId } from "../dominion/set-id" ; import { SupplyCard } from "../dominion/supply-card" ; import { SupplyDivider } from "./supply-divider" ; import { SupplyDivision } from "./supply-division" ; export class SetSupplyDivider extends SupplyDivider { constructor ( readonly setId , count ) { super ( count ) ; } protected getSatisfyingCards ( division ) { return division . availableCards . filter ( Cards . filterByIncludedSetIds ( [ this . setId ] ) ) ; } protected getRemainingCards ( division ) { return division . availableCards . filter ( Cards . filterByExcludedSetIds ( [ this . setId ] ) ) ; } }