示例#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];
        }
示例#2
0
文件: Fighter.cs 项目: Pavelkva/RPG
 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;
 }
示例#3
0
文件: EnemyNpc.cs 项目: Pavelkva/RPG
 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)
 {
 }