Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #3
0
        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>();
        }
Beispiel #4
0
        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>();
        }
Beispiel #5
0
        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);
        }
Beispiel #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);
            }
        }
Beispiel #7
0
        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);
        }
Beispiel #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>();
 }
Beispiel #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);
 }
Beispiel #10
0
        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>();
        }
Beispiel #11
0
        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);
        }
Beispiel #12
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>();

            resistances = new List<Resistance>();
            weaknesses = new List<Weakness>();
        }
Beispiel #13
0
        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>();
        }