コード例 #1
0
ファイル: Entity.cs プロジェクト: AlanWills/Mythology
        private Entity()
        {
            Health  = new AttributePair(0);
            Stamina = new AttributePair(0);
            Mana    = new AttributePair(0);

            Skills  = new Dictionary <string, Skill>();
            Spells  = new Dictionary <string, Spell>();
            Talents = new Dictionary <string, Talent>();

            SkillModifiers  = new List <Modifier>();
            SpellModifiers  = new List <Modifier>();
            TalentModifiers = new List <Modifier>();
            Resistances     = new List <Resistance>();
            Weaknesses      = new List <Weakness>();
        }
コード例 #2
0
ファイル: Entity.cs プロジェクト: AlanWills/Mythology
        private Entity()
        {
            Health = new AttributePair(0);
            Stamina = new AttributePair(0);
            Mana = new AttributePair(0);

            Skills = new Dictionary<string, Skill>();
            Spells = new Dictionary<string, Spell>();
            Talents = new Dictionary<string, Talent>();

            SkillModifiers = new List<Modifier>();
            SpellModifiers = new List<Modifier>();
            TalentModifiers = new List<Modifier>();
            Resistances = new List<Resistance>();
            Weaknesses = new List<Weakness>();
        }
コード例 #3
0
ファイル: Entity.cs プロジェクト: Nanuq/DragonSlice
        public Entity(string name, EntityData entityData, EntityGender gender, EntityType entityType)
            : this()
        {
            EntityName = name;
            EntityClass = entityData.EntityName;
            Gender = gender;
            EntityType = entityType;
            Strength = entityData.Strength;
            Dexterity = entityData.Dexterity;
            Intelligence = entityData.Intelligence;
            Agility = entityData.Agility;
            Wisdom = entityData.Wisdom;
            vitality = entityData.Vitality;

            health = new AttributePair(0);
            stamina = new AttributePair(0);
            mana = new AttributePair(0);
        }
コード例 #4
0
ファイル: Entity.cs プロジェクト: Nanuq/DragonSlice
        private Entity()
        {
            Strength = 0;
            Dexterity = 0;
            Intelligence = 0;
            Agility = 0;
            Wisdom = 0;
            Vitality = 0;

            health = new AttributePair(0);
            stamina = new AttributePair(0);
            mana = new AttributePair(0);

            skills = new Dictionary<string, Skill>();
            spells = new Dictionary<string, Spell>();
            talents = new Dictionary<string, Talent>();

            skillModifiers = new List<Modifier>();
            spellModifiers = new List<Modifier>();
            talentModifiers = new List<Modifier>();
        }