Exemplo n.º 1
0
        public Player(string name, IFighterEffectManager fighterEffectManager, int maxHp = 0, int maxEnergy = 0, int strength = 10, int agility = 10, int intellect = 10, int armor = 0) : base(name, fighterEffectManager, maxHp, maxEnergy, strength, agility, intellect, armor)
        {
            int numSlots = Enum.GetNames(typeof(Equipment.Parts)).Length;

            equipmentSlots = new Equipment[numSlots];
            Inventory      = new Item[12];
        }
Exemplo n.º 2
0
 protected Fighter(string name, IFighterEffectManager fighterEffectManager, int maxHp, int maxEnergy, int strength = 10, int agility = 10, int intellect = 10, int armor = 0)
 {
     spellEffects         = new List <SpellEffect>();
     bonusAtributes       = new List <BonusAtribute>();
     spellBook            = new List <Spell>();
     BaseStrength         = strength;
     BaseAgility          = agility;
     BaseIntellect        = intellect;
     Name                 = name;
     BaseHp               = maxHp;
     BaseEnergy           = maxEnergy;
     ActualHp             = MaxHp;
     ActualEnergy         = MaxEnergy;
     Armor                = armor;
     FighterEffectManager = fighterEffectManager;
 }
Exemplo n.º 3
0
 public EnemyNpc(string name, IFighterEffectManager fighterEffectManager, int maxHp = 0, int maxEnergy = 0, int strength = 10, int agility = 10, int intellect = 10, int armor = 0) : base(name, fighterEffectManager, maxHp, maxEnergy, strength, agility, intellect, armor)
 {
 }