コード例 #1
0
 private Entity()
 {
     Strength     = 0;
     Dexterity    = 0;
     Cunning      = 0;
     Willpower    = 0;
     Magic        = 0;
     Constitution = 0;
     health       = new AttributePair(0);
     stamina      = new AttributePair(0);
     mana         = new AttributePair(0);
 }
コード例 #2
0
 public Entity(EntityData entityData)
 {
     entityType   = entityData.ClassName;
     Strength     = entityData.Strength;
     Dexterity    = entityData.Dexterity;
     Cunning      = entityData.Cunning;
     Willpower    = entityData.Willpower;
     Magic        = entityData.Magic;
     Constitution = entityData.Constitution;
     health       = new AttributePair(0);
     stamina      = new AttributePair(0);
     mana         = new AttributePair(0);
 }
コード例 #3
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>();
        }
コード例 #4
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>();
        }
コード例 #5
0
ファイル: Entity.cs プロジェクト: ChampRain/BurningSteel
        public Entity(EntityData entityData)
        {
            entityType = entityData.EntityName;
            Strength = entityData.Strength;
            Cunning = entityData.Cunning;
            Constitution = entityData.Constitution;
            Willpower = entityData.Willpower;
            Magic = entityData.Magic;
            Dexterity = entityData.Dexterity;

            health = new AttributePair(0);
            mana = new AttributePair(0);
            stamina = new AttributePair(0);
        }
コード例 #6
0
        public Entity(
            string name,
            EntityData entityData,
            EntityGender gender,
            EntityType entityType) : this()
        {
            EntityName   = name;
            Level        = entityData.Level;
            EntityClass  = entityData.EntityName;
            Gender       = gender;
            EntityType   = entityType;
            Strength     = entityData.Strength;
            Dexterity    = entityData.Dexterity;
            Cunning      = entityData.Cunning;
            Willpower    = entityData.Willpower;
            Magic        = entityData.Magic;
            Constitution = entityData.Constitution;

            HealthCalculation  = entityData.HealthFormula;
            StaminaCalculation = entityData.StaminaFormula;
            ManaCalculation    = entityData.MagicFormula;

            if (!string.IsNullOrEmpty(entityData.HealthFormula))
            {
                health = new AttributePair(CalculateAttribute(entityData.HealthFormula));
            }
            else
            {
                health = new AttributePair(entityData.MaximumHealth);
            }

            if (!string.IsNullOrEmpty(entityData.StaminaFormula))
            {
                stamina = new AttributePair(CalculateAttribute(entityData.StaminaFormula));
            }
            else
            {
                stamina = new AttributePair(entityData.MaximumStamina);
            }

            if (!string.IsNullOrEmpty(entityData.MagicFormula))
            {
                mana = new AttributePair(CalculateAttribute(entityData.MagicFormula));
            }
            else
            {
                mana = new AttributePair(entityData.MaximumMana);
            }
        }
コード例 #7
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);
        }
コード例 #8
0
 private Entity()
 {
     Strength        = 10;
     Dexterity       = 10;
     Cunning         = 10;
     Willpower       = 10;
     Magic           = 10;
     Constitution    = 10;
     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>();
 }
コード例 #9
0
 public Entity(
     string name,
     EntityData entityData,
     EntityGender gender,
     EntityType entityType)
 {
     EntityName   = name;
     EntityClass  = entityData.EntityName;
     Gender       = gender;
     EntityType   = entityType;
     Strength     = entityData.Strength;
     Dexterity    = entityData.Dexterity;
     Cunning      = entityData.Cunning;
     Willpower    = entityData.Willpower;
     Magic        = entityData.Magic;
     Constitution = entityData.Constitution;
     health       = new AttributePair(0);
     stamina      = new AttributePair(0);
     mana         = new AttributePair(0);
 }
コード例 #10
0
ファイル: Entity.cs プロジェクト: ChampRain/BurningSteel
        private Entity()
        {
            Strength = 0;
            Cunning = 0;
            Dexterity = 0;
            Willpower = 0;
            Magic = 0;
            Constitution = 0;

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

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

            skillModifiers = new List<Modifier>();
            talentModifiers = new List<Modifier>();
            spellModifiers = new List<Modifier>();
        }
コード例 #11
0
ファイル: Entity.cs プロジェクト: vkuts/Gamesor
        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;
            Cunning = entityData.Cunning;
            Willpower = entityData.Willpower;
            Magic = entityData.Magic;
            Constitution = entityData.Constitution;

            health = new AttributePair(0);
            stamina = new AttributePair(0);
            mana = new AttributePair(0);
        }
コード例 #12
0
ファイル: Entity.cs プロジェクト: brollins90/eotd
        private Entity()
        {
            Strength = 10;
            Dexterity = 10;
            Cunning = 10;
            Willpower = 10;
            Magic = 10;
            Constitution = 10;

            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>();
        }
コード例 #13
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>();
        }