Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            FNPlayer player1 = new FNPlayer();
            FNPlayer player2 = new FNPlayer("MachineGun", 100, 100);

            Console.WriteLine("Shield before: " + player2.GetShield());
            player1.Attack(player2);
            Console.WriteLine("Shield after: " + player2.GetShield());

            Console.WriteLine("Shield before: " + player1.GetShield());
            player1.SetShield(50);
            Console.WriteLine("Shield after: " + player1.GetShield());
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            FNPlayer player1 = new FNPlayer();
            FNPlayer player2 = new FNPlayer("MachineGun", 100, 100);

            Console.WriteLine("P2 Shield Before: " + player2.GetShield());
            Console.WriteLine("P2 HP Before: " + player2.GetShield());

            player1.Attack(player2);
            Console.WriteLine();
            Console.WriteLine("****************");
            Console.WriteLine("*P1 PICKAXED P2*");
            Console.WriteLine("****************");
            Console.WriteLine();

            Console.WriteLine("P2 Shield after: " + player2.GetShield());
            Console.WriteLine("P2 HP after: " + player2.GetShield());

            Console.WriteLine();
            Console.WriteLine("P1 Shield after: " + player1.GetShield());
            player1.SetShield(50);
            Console.WriteLine("P2 Shield after: " + player1.GetShield());
        }