static void Main(string[] args)
        {
            SuperVillain superVillain = new SuperVillain("SuperVillain Dude", 100);

            superVillain.Powers.Add(new Power("Teleportation", 50));
            superVillain.Powers.Add(new Power("Phasing", 40));
            superVillain.Powers.Add(new Power("Invisibility", 30));
            Console.WriteLine(superVillain.ToString());
            Console.WriteLine("Malice: " + superVillain.Malice);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            SuperHero superHero = new SuperHero("SuperHero Dude", 20);

            superHero.Powers.Add(new Power("Teleportation", 50));
            superHero.Powers.Add(new Power("Phasing", 40));
            superHero.Powers.Add(new Power("Invisibility", 30));
            Console.WriteLine(superHero.ToString());
            Console.WriteLine("Karma: " + superHero.Karma);
            SuperVillain supervillain = new SuperVillain("SuperVillain Groot", 20);

            supervillain.Powers.Add(new Power("Metal Body Conversion", 46));
            supervillain.Powers.Add(new Power("Mind Reading", 20));
            Console.WriteLine(supervillain.ToString());
            Console.WriteLine("Malice : " + supervillain.Malice);
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            SuperHero superHero = new SuperHero("SuperHero Dude", 20);

            superHero.Powers.Add(new Power("Teleportation", 50));
            superHero.Powers.Add(new Power("Phasing", 40));
            superHero.Powers.Add(new Power("Invisibility", 30));
            Console.WriteLine(superHero.ToString());
            Console.WriteLine("Karma: " + superHero.Karma);
            Console.WriteLine();

            SuperVillain superVillain = new SuperVillain("SuperVillain Dude", 20);

            superVillain.AddPower("Shadow Casting", 50);
            superVillain.AddPower("Mind Control", 40);
            superVillain.AddPower("Combat Senses", 30);
            Console.WriteLine(superVillain.ToString());
            Console.WriteLine("Malice: " + superVillain.Malice);
        }
Esempio n. 4
0
        static void Main(string[] args)
        {
            //SuperHero superHero = new SuperHero("SuperHero Dude", 20);
            //superHero.Powers.Add(new Power("Teleportation", 50));
            //superHero.Powers.Add(new Power("Phasing", 40));
            //superHero.Powers.Add(new Power("Invisibility", 30));
            //Console.WriteLine(superHero.ToString());
            //Console.WriteLine("Karma: " + superHero.Karma);
            SuperVillain superVillain1 = new SuperVillain("SupperVillain Alan", 10);

            superVillain1.Powers.Add(new Power("War", 20));
            superVillain1.Powers.Add(new Power("Disease", 40));
            Console.WriteLine(superVillain1.ToString());
            Console.WriteLine("Malice: " + superVillain1.Malice);
            SuperVillain superVillain2 = new SuperVillain("SupperVillain Angela", 15);

            superVillain2.Powers.Add(new Power("Fire", 35));
            Console.WriteLine(superVillain2.ToString());
            Console.WriteLine("Malice: " + superVillain2.Malice);
        }