Ejemplo n.º 1
0
        public void TestGetSpawnFutureRng()
        {
            SpawnRngHelper helper = GetDefaultHelper();

            helper.FindFirstRngPosition(88);
            helper.CalculateRng(100);
            Assert.IsNotNull(helper.GetSpawnFutureRng());
        }
Ejemplo n.º 2
0
        public void TestGetNextExpecteHealValue()
        {
            SpawnRngHelper helper = GetDefaultHelper();

            helper.FindFirstRngPosition(94);
            helper.FindNextRngPosition(89);
            helper.FindNextRngPosition(97);
            helper.CalculateRng(100);
            Assert.AreEqual(94, helper.GetNextExpectedHealValue());
        }
Ejemplo n.º 3
0
        public void TestGetAttacksUntilNextCombo()
        {
            SpawnRngHelper helper = GetDefaultHelper();

            helper.FindFirstRngPosition(89);
            helper.FindNextRngPosition(87);
            helper.FindNextRngPosition(97);
            helper.CalculateRng(100);
            Assert.AreEqual(6, helper.GetAttacksUntilNextCombo());
        }
Ejemplo n.º 4
0
        public void TestLastNBeforeMCalculation()
        {
            SpawnRngHelper helper = GetComplexHelper();

            helper.FindFirstRngPosition(89);
            helper.FindNextRngPosition(87);
            helper.FindNextRngPosition(97);
            helper.CalculateRng(100);
            Assert.AreEqual(1, helper.GetSpawnFutureRng()
                            .GetStepsToLastNSpawnBeforeMSpawn(0, 1));
            helper.ConsumeNextNRngPositions(10);
            helper.CalculateRng(100);
            Assert.AreEqual(4, helper.GetSpawnFutureRng()
                            .GetStepsToLastNSpawnBeforeMSpawn(0, 1));
        }
Ejemplo n.º 5
0
        private void btnBegin_Click(object sender, EventArgs e)
        {
            SetContinueButtonsEnabledStatus(true);

            LoadData();

            if (!_rngHelper.FindFirstRngPosition(int.Parse(tbLastHeal.Text)))
            {
                SetContinueButtonsEnabledStatus(false);
                HandleImpossibleHealVal();
                return;
            }

            int numRows = FormUtils.ParseNumRows(tbNumRows.Text);

            _rngHelper.CalculateRng(numRows);
            DisplayFutureRng();
        }