Esempio n. 1
0
 public override void MakeHero()
 {
     Powers.Add(new Flight());
     Powers.Add(new Strength());
     Powers.Add(new Invulnerable());
     Powers.Add(new HeatVision());
 }
Esempio n. 2
0
 public Superman() : base("Superman", "Clark Kent")
 {
     Powers.Add("Fly", new Fly());
     Powers.Add("LaserVision", new LaserVision());
     Powers["LaserVision"].UpgradeStrength(100);
     Powers["Punch"].UpgradeStrength(60);
 }
Esempio n. 3
0
 public Batman() : base("Batman", "Bruce Wayne")
 {
     Powers.Add("Throw Ninja Star", new CustomFightingPower("Throw Ninja Star"));
     Powers["Throw Ninja Star"].UpgradeStrength(30);
     Powers["Punch"].UpgradeStrength(30);
     Powers["Dodge"].UpgradeStrength(40);
     Powers["Block"].UpgradeStrength(10);
 }
Esempio n. 4
0
 public void passAmountOfPowers(int a)
 {
     Powers.Clear();
     for (int i = 0; i < a; i++)
     {
         Power p = new Power();
         Powers.Add(p);
     }
 }
Esempio n. 5
0
        private void SetSuperhero(SuperheroDetailsDTO value)
        {
            _superhero = value;

            Title           = _superhero.AlterEgo;
            Id              = _superhero.Id;
            Name            = _superhero.Name;
            AlterEgo        = _superhero.AlterEgo;
            PortraitUrl     = _superhero.PortraitUrl;
            Occupation      = _superhero.Occupation;
            CityId          = _superhero.CityId;
            CityName        = _superhero.CityName;
            Gender          = _superhero.Gender;
            FirstAppearance = _superhero.FirstAppearance;
            BackgroundUrl   = _superhero.BackgroundUrl;

            Powers.Clear();
            foreach (var power in _superhero.Powers)
            {
                Powers.Add(power);
            }
        }
            public TalentSet(List <ExportEntry> allPowers)
            {
                int numPassives = 0;

                for (int i = 0; i < 6; i++)
                {
                    var talent = new Talent(allPowers.PullFirstItem());
                    int retry  = allPowers.Count;
                    while (retry > 0 && Powers.Any(x => x.BasePower.InstancedFullPath == talent.BasePower.InstancedFullPath))
                    {
                        allPowers.Add(talent.PowerExport);
                        talent = new Talent(allPowers.PullFirstItem());
                        retry--;
                        if (retry <= 0)
                        {
                            IsBaseValid = false;
                            return;
                        }
                    }

                    if (talent.BasePower.ObjectName.Name.Contains("Passive"))
                    {
                        numPassives++;
                        if (numPassives > 3)
                        {
                            // We must ensure there is not a class full of passives
                            // or the evolutions will not have a solution
                            // only doing half allows us to give the evolution solution finder
                            // a better chance at a quick solution
                            IsBaseValid = false;
                            return;
                        }
                    }
                    Powers.Add(talent);
                }

                IsBaseValid = true;
            }
Esempio n. 7
0
 public override void MakeHero()
 {
     Powers.Add(new IsBatman());
 }
Esempio n. 8
0
 public override void MakeHero()
 {
     Powers.Add(new Speed());
     Powers.Add(new Regeneration());
 }
Esempio n. 9
0
 public Deadpool() : base("Deadpool", "Wade Wilson")
 {
     Powers.Add("Regenerate", new Regenerate());
     Powers.Add("Shoot", new CustomFightingPower("Shoot"));
     Powers["Shoot"].UpgradeStrength(60);
 }
Esempio n. 10
0
 public Wonderwoman() : base("Wonderwoman", "Princess Diana of Themyscira")
 {
     Powers.Add("Fly", new Fly());
     Powers["Punch"].UpgradeStrength(60);
     Powers["Dodge"].UpgradeStrength(40);
 }