private void CalculateExping()
        {
            var instanceExpingCalculator = m_CalculatorFactory.CreateExpingCalculator();
            var result = instanceExpingCalculator.CalculateExping
                             (SelectedStartLevel,
                             SelectedTargetLevel,
                             GainedExpPercentage,
                             SelectedStartStage,
                             SelectedEndStage,
                             ArenaEnabled,
                             BaiumEnabled,
                             ZakenEnabled,
                             AntharasEnabled,
                             DailyQuestsEnabled);

            if (result != null)
            {
                ScrollsCount    = m_ResultFormatter.ScrollsCount(result);
                MoneyForScrolls = m_ResultFormatter.ScrollPrices(result);
            }
            TotalExperience     = m_ResultFormatter.TotalExperience(result);
            WeeksCount          = m_ResultFormatter.WeeksCount(result);
            RemainingExperience = m_ResultFormatter.RemainingExperience(result);
            MoneyTotal          = m_ResultFormatter.MoneyTotal(result.CollectedScrolls);
        }
Exemplo n.º 2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var expingCalculator = m_CalculatorFactory.CreateExpingCalculator();
            var scrolls          = new Scrolls(TenKkScrolls, FiftyKkScrolls, HundredKkScrolls);
            var result           = expingCalculator.ConvertScrollsToLevel(
                SelectedStartLevel,
                GainedExpPercent,
                scrolls);

            ResultLevel = result.ResultLevel.ToString();
            ExperienceOnLevelPercentage = $"{result.GainedExpPercentageOnLevel.ToString()}%";
            TotalExpToConvert           = m_ResultFormatter.Experience(scrolls.TotalExp);
            MoneyTotal = m_ResultFormatter.MoneyTotal(scrolls);
        }