Example #1
0
        public static PriestSolver GetModel(CharacterCalculationsHealPriest calc, CalculationOptionsHealPriest calcOpts, bool verbose)
        {
            string modelName = calcOpts.Model;
            PriestSolver model = null;

            if (modelName == modelDiscTank)
                model = new PriestSolverDisciplineTank(calc, calcOpts, verbose);
            else if (modelName == modelDiscTank2)
                model = new PriestSolverDisciplineTank2(calc, calcOpts, verbose);
            else if (modelName == modelDiscTank3)
                model = new PriestSolverDisciplineTank3(calc, calcOpts, verbose);
            else if (modelName == modelDiscRaid)
                model = new PriestSolverDisciplineRaid(calc, calcOpts, verbose);
            else if (modelName == modelHolyTank)
                model = new PriestSolverHolyTank(calc, calcOpts, verbose);
            else if (modelName == modelHolyRaid)
                model = new PriestSolverHolyRaid(calc, calcOpts, verbose);
            /*if (verbose)
            {
                List<string> msg = model.MeetsRequirements();
                if (msg.Count > 0)
                {
                    MessageBox.Show(String.Format("Currently selected model might not work optimally due to:{0}", String.Join("\n", msg)));
                }
            }*/

            if (model == null)
                throw new Exception("No model selection for Healing Priest. Not a good situation.");
            return model;
        }
Example #2
0
        public static PriestSolver GetModel(CharacterCalculationsHealPriest calc, CalculationOptionsHealPriest calcOpts, bool verbose)
        {
            string       modelName = calcOpts.Model;
            PriestSolver model     = null;

            if (modelName == modelDiscTank)
            {
                model = new PriestSolverDisciplineTank(calc, calcOpts, verbose);
            }
            else if (modelName == modelDiscTank2)
            {
                model = new PriestSolverDisciplineTank2(calc, calcOpts, verbose);
            }
            else if (modelName == modelDiscTank3)
            {
                model = new PriestSolverDisciplineTank3(calc, calcOpts, verbose);
            }
            else if (modelName == modelDiscRaid)
            {
                model = new PriestSolverDisciplineRaid(calc, calcOpts, verbose);
            }
            else if (modelName == modelHolyTank)
            {
                model = new PriestSolverHolyTank(calc, calcOpts, verbose);
            }
            else if (modelName == modelHolyRaid)
            {
                model = new PriestSolverHolyRaid(calc, calcOpts, verbose);
            }

            /*if (verbose)
             * {
             *  List<string> msg = model.MeetsRequirements();
             *  if (msg.Count > 0)
             *  {
             *      MessageBox.Show(String.Format("Currently selected model might not work optimally due to:{0}", String.Join("\n", msg)));
             *  }
             * }*/

            if (model == null)
            {
                throw new Exception("No model selection for Healing Priest. Not a good situation.");
            }
            return(model);
        }