Example #1
0
        // -------------------------------------------------------------------
        // Constructor
        // -------------------------------------------------------------------
        public AttributeSet(D3Class @class, bool initializeWithClass = true)
        {
            this.currentClass = @class;
            this.attributes = initializeWithClass ? new Dictionary<D3Attribute, float>(@class.Attributes) : new Dictionary<D3Attribute, float>();

            this.finalAttributes = new Dictionary<D3Attribute, float>();

            this.DamageType = D3DamageType.Physical;
        }
Example #2
0
        public static IList<D3Class> GetDefaultClasses()
        {
            IList<D3Class> classes = new List<D3Class>();

            var @class = new D3Class
            {
                Name = "Wizard",
                PrimaryAttribute = D3Attribute.Int,
                PrimaryResourceName = "Arcane Power",
                Attributes = DefaultsWizard.Attributes,
                Skills = DefaultsWizard.Skills
            };
            classes.Add(@class);

            @class = new D3Class
            {
                Name = "Witch Doctor",
                PrimaryAttribute = D3Attribute.Int,
                PrimaryResourceName = "Mana",
                Attributes = DefaultsWitchDoctor.Attributes,
                Skills = DefaultsWitchDoctor.Skills
            };
            classes.Add(@class);

            @class = new D3Class
            {
                Name = "Demon Hunter",
                PrimaryAttribute = D3Attribute.Dex,
                PrimaryResourceName = "Hatred",
                SecondaryResourceName = "Discipline",
                Attributes = DefaultsDemonHunter.Attributes,
                Skills = DefaultsDemonHunter.Skills
            };
            classes.Add(@class);

            @class = new D3Class
            {
                Name = "Monk",
                PrimaryAttribute = D3Attribute.Dex,
                PrimaryResourceName = "Spirit",
                Attributes = DefaultsMonk.Attributes,
                Skills = DefaultsMonk.Skills
            };
            classes.Add(@class);

            @class = new D3Class
            {
                Name = "Barbarian",
                PrimaryAttribute = D3Attribute.Str,
                PrimaryResourceName = "Rage",
                Attributes = DefaultsBarbarian.Attributes,
                Skills = DefaultsBarbarian.Skills
            };
            classes.Add(@class);

            @class = new D3Class
            {
                Name = "Crusader",
                PrimaryAttribute = D3Attribute.Str,
                PrimaryResourceName = "Wrath",
                Attributes = DefaultsCrusader.Attributes,
                Skills = DefaultsCrusader.Skills
            };
            classes.Add(@class);

            return classes;
        }