public override bool AgeIsFinished(account.Account account) { int count = 0; foreach (DataTableItems.ItemTypes itemType in m_ItemsToWin.Keys) { if (account.Inventory.HasAmountOfItem(itemType, m_ItemsToWin[itemType])) { count++; } } return(count == m_ItemsToWin.Count); }
public abstract bool AgeIsFinished(account.Account account);