Esempio n. 1
0
        public void AddCollection(IBreakdown targetSet)
        {
            Collection newCollection = new Collection(targetSet, compStrat);

            newCollection.initCollection();

            int numAdd = 1;

            if (targetSet.GetType() == typeof(BaseSetBreakdown))
            {
                numAdd = 3;
            }

            for (int x = 0; x < numAdd; x++)
            {
                cardSets.Add(targetSet.NAME + x, newCollection);
                try
                {
                    numPacks.Add(targetSet.NAME, 0);
                }
                catch (Exception) { }
            }

            //increment maxVials to check for a bad test.
            int maxVialIncrement = 0;

            maxVialIncrement += targetSet.BRONZE * Shop.craftingCosts[Rarities.Bronze];
            maxVialIncrement += targetSet.SILVER * Shop.craftingCosts[Rarities.Silver];
            maxVialIncrement += targetSet.GOLD * Shop.craftingCosts[Rarities.Gold];
            maxVialIncrement += targetSet.LEGENDARY * Shop.craftingCosts[Rarities.Legendary];

            maxVials += (maxVialIncrement * 3);
        }
Esempio n. 2
0
 public MetricsBase(IBreakdown breakdowns)
 {
     _tflWs     = Utility.TflWs;
     Season     = Utility.CurrentSeason();
     TeamList   = new ArrayList();
     Breakdowns = breakdowns;
 }
Esempio n. 3
0
 public MetricsBase(IBreakdown breakdowns, string season)
 {
     _tflWs     = Utility.TflWs;
     Season     = season;
     TeamList   = new ArrayList();
     Breakdowns = breakdowns;
 }
Esempio n. 4
0
 //[Inject]
 public MetricsBase( IBreakdown breakdowns )
 {
     _tflWs = Utility.TflWs;
     Season = SeasonBoss.CurrentSeason();
     TeamList = new ArrayList();
     Breakdowns = breakdowns;
 }
Esempio n. 5
0
 public MetricsBase(IBreakdown breakdowns, string season )
 {
     _tflWs = Utility.TflWs;
     Season = season;
     TeamList = new ArrayList();
     Breakdowns = breakdowns;
 }
Esempio n. 6
0
 public PositionReport(
     IKeepTheTime timekeeper
     ) : base(timekeeper)
 {
     Options = new List <PositionReportOptions>();
     LoadAllTheOptions();
     PlayerBreakdowns = new PreStyleBreakdown();
     SetWeek(timekeeper);
 }
Esempio n. 7
0
 public PositionReport(
     IKeepTheTime timekeeper,
     PositionReportOptions config
     ) : base(timekeeper)
 {
     Options = new List <PositionReportOptions>
     {
         config
     };
     PlayerBreakdowns = new PreStyleBreakdown();
     SetWeek(timekeeper);
 }
Esempio n. 8
0
        public static BoosterPack buyPack(IBreakdown targetSet, int index)
        {
            if (!packHistory.ContainsKey(targetSet.NAME))
            {
                packHistory.Add(targetSet.NAME, new List <BoosterPack>());
            }

            if (packHistory[targetSet.NAME].Count() - 1 < index)
            {
                for (int counter = packHistory[targetSet.NAME].Count(); counter <= index; counter++)
                {
                    packHistory[targetSet.NAME].Add(new BoosterPack(targetSet));
                }
            }

            return(packHistory[targetSet.NAME][index]);
        }
Esempio n. 9
0
        public void AddCollection(IBreakdown targetSet)
        {
            Collection newCollection = new Collection(targetSet, compStrat);

            newCollection.initCollection();

            cardSets.Add(targetSet.NAME, newCollection);
            numPacks.Add(targetSet.NAME, 0);

            //increment maxVials to check for a bad test.
            int maxVialIncrement = 0;

            maxVialIncrement += (targetSet.BRONZE * Shop.craftingCosts[Rarities.Bronze] * 3);
            maxVialIncrement += (targetSet.SILVER * Shop.craftingCosts[Rarities.Silver] * 3);
            maxVialIncrement += targetSet.GOLD * Shop.craftingCosts[Rarities.Gold] * 3;
            maxVialIncrement += targetSet.LEGENDARY * Shop.craftingCosts[Rarities.Legendary] * 2;

            maxVials += maxVialIncrement;
        }
 public Collection(IBreakdown bd, ICollectionCompletionStrategy ccs)
 {
     curSet       = bd;
     colCompStrat = ccs;
 }
 public BreakdownViewModel(string name, IBreakdown breakdown)
 {
     _name = name;
     _breakdownItems = breakdown.Items.OrderByDescending(i => i.Size).Select(item => new BreakdownItemViewModel(item)).ToArray();
 }
 public BoosterPack(IBreakdown set)
 {
     curSet = set;
     FillPack();
     CheckAnimated();
 }