示例#1
0
        public CharacterCalculationsBase GetCharacterCalculations(Character character, Item additionalItem, bool computeIncrementalSet)
        {
            CompiledCalculationOptions calculationOptions = new CompiledCalculationOptions(character);
            CharacterCalculationsBase  calc = GetCharacterCalculations(character, additionalItem, calculationOptions, null, computeIncrementalSet);

            return(calc);
        }
示例#2
0
        private Stats GetRawStats(Character character, Item additionalItem, CompiledCalculationOptions calculationOptions, List <string> autoActivatedBuffs, string armor)
        {
            Stats         statsBaseGear = GetItemStats(character, additionalItem);
            Stats         statsEnchants = GetEnchantsStats(character);
            List <string> activeBuffs   = new List <string>();

            activeBuffs.AddRange(character.ActiveBuffs);

            Stats statsBuffs = GetBuffsStats(activeBuffs);

            Stats statsGearEnchantsBuffs = statsBaseGear + statsEnchants + statsBuffs;

            return(statsGearEnchantsBuffs);
        }
示例#3
0
        public Stats GetCharacterStats(Character character, Item additionalItem, Stats rawStats, CompiledCalculationOptions calculationOptions)
        {
            Stats statsRace;

            switch (character.Race)
            {
            case Character.CharacterRace.Dwarf:
                statsRace = new Stats()
                {
                    Health    = 0f,
                    Mana      = 0f,
                    Strength  = 0f,
                    Agility   = 0f,
                    Stamina   = 0f,
                    Intellect = 0f,
                    Spirit    = 0f
                };
                break;

            case Character.CharacterRace.NightElf:
                statsRace = new Stats()
                {
                    Health    = 0f,
                    Mana      = 0f,
                    Strength  = 0f,
                    Agility   = 0f,
                    Stamina   = 0f,
                    Intellect = 0f,
                    Spirit    = 0f
                };
                break;

            case Character.CharacterRace.Orc:
                statsRace = new Stats()
                {
                    Health    = 0f,
                    Mana      = 0f,
                    Strength  = 0f,
                    Agility   = 0f,
                    Stamina   = 0f,
                    Intellect = 0f,
                    Spirit    = 0f
                };
                break;

            case Character.CharacterRace.Tauren:
                statsRace = new Stats()
                {
                    Health    = 0f,
                    Mana      = 0f,
                    Strength  = 0f,
                    Agility   = 0f,
                    Stamina   = 0f,
                    Intellect = 0f,
                    Spirit    = 0f
                };
                break;

            case Character.CharacterRace.Troll:
                statsRace = new Stats()
                {
                    Health    = 0f,
                    Mana      = 0f,
                    Strength  = 0f,
                    Agility   = 0f,
                    Stamina   = 0f,
                    Intellect = 0f,
                    Spirit    = 0f
                };
                break;

            case Character.CharacterRace.BloodElf:
                statsRace = new Stats()
                {
                    Health    = 0f,
                    Mana      = 0f,
                    Strength  = 0f,
                    Agility   = 0f,
                    Stamina   = 0f,
                    Intellect = 0f,
                    Spirit    = 0f
                };
                break;

            case Character.CharacterRace.Draenei:
                statsRace = new Stats()
                {
                    Health    = 0f,
                    Mana      = 0f,
                    Strength  = 0f,
                    Agility   = 0f,
                    Stamina   = 0f,
                    Intellect = 0f,
                    Spirit    = 0f
                };
                break;

            default:
                statsRace = new Stats();
                break;
            }

            return(statsRace);
        }
示例#4
0
        public CharacterCalculationsBase GetCharacterCalculations(Character character, Item additionalItem, CompiledCalculationOptions calculationOptions, string armor, bool computeIncrementalSet)
        {
            CharacterCalculationsHunter calculatedStats = null;

            return(calculatedStats);
        }
示例#5
0
        public override Stats GetCharacterStats(Character character, Item additionalItem)
        {
            CompiledCalculationOptions calculationOptions = new CompiledCalculationOptions(character);

            return(GetCharacterStats(character, additionalItem, GetRawStats(character, additionalItem, calculationOptions, new List <string>(), null), calculationOptions));
        }