Esempio n. 1
0
        public RoleModelNative(INativeManager nativeManager, string id, int defaultStrength, int defaultWillpower, int defaultConstitution, int defaultSpeed, int defaultActionPointsIncome, string attackingSkillId, string[] skillIds)
        {
            this.Id                        = id;
            this.AttackingSkill            = nativeManager.GetSkillNative(attackingSkillId);
            this.DefaultActionPointsIncome = defaultActionPointsIncome;
            this.DefaultConstitution       = defaultConstitution;
            this.DefaultWillpower          = defaultWillpower;
            this.DefaultStrength           = defaultStrength;
            this.DefaultSpeed              = defaultSpeed;
            SkillNative[] skills = new SkillNative[skillIds.Length];
            for (int i = 0; i < skills.Length; i++)
            {
                skills[i] = nativeManager.GetSkillNative(skillIds[i]);
            }

            this.Skills = skills;
        }
Esempio n. 2
0
 public RoleModelNative(string id, int defaultStrength, int defaultWillpower, int defaultConstitution, int defaultSpeed, int defaultActionPointsIncome, SkillNative attackingSkill, SkillNative[] skills)
 {
     this.Id                        = id;
     this.AttackingSkill            = attackingSkill;
     this.DefaultActionPointsIncome = defaultActionPointsIncome;
     this.DefaultConstitution       = defaultConstitution;
     this.DefaultWillpower          = defaultWillpower;
     this.DefaultStrength           = defaultStrength;
     this.DefaultSpeed              = defaultSpeed;
     this.Skills                    = skills;
 }