Beispiel #1
0
 public ClassData(string name, PowerSource power_source, PrimaryAbility key_ability, HeroRoleType role)
 {
     Name        = name;
     PowerSource = power_source;
     KeyAbility  = key_ability;
     Role        = role;
 }
Beispiel #2
0
 public ClassData(string name, Masterplan.PowerSource power_source, PrimaryAbility key_ability, HeroRoleType role)
 {
     this.Name        = name;
     this.PowerSource = power_source;
     this.KeyAbility  = key_ability;
     this.Role        = role;
 }
Beispiel #3
0
        public static List <RaceData> Filter(PrimaryAbility ability)
        {
            List <RaceData> races = new List <RaceData>();

            foreach (RaceData rd in Races)
            {
                if (rd.Abilities.Contains(ability))
                {
                    races.Add(rd);
                }
            }

            return(races);
        }
Beispiel #4
0
        public static List <RaceData> Filter(PrimaryAbility ability)
        {
            List <RaceData> raceDatas = new List <RaceData>();

            foreach (RaceData race in Sourcebook.Races)
            {
                if (!race.Abilities.Contains(ability))
                {
                    continue;
                }
                raceDatas.Add(race);
            }
            return(raceDatas);
        }
Beispiel #5
0
        public int Count(PrimaryAbility key_ability)
        {
            int num = 0;

            foreach (HeroData hero in this.Heroes)
            {
                if (hero.Class == null || hero.Class.KeyAbility != key_ability)
                {
                    continue;
                }
                num++;
            }
            return(num);
        }
Beispiel #6
0
        public int Count(PrimaryAbility key_ability)
        {
            int count = 0;

            foreach (HeroData hero in Heroes)
            {
                if (hero.Class == null)
                {
                    continue;
                }

                if (hero.Class.KeyAbility == key_ability)
                {
                    count += 1;
                }
            }

            return(count);
        }