Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            FNPlayer p1 = new FNPlayer();
            FNPlayer p2 = new FNPlayer(100, 50);

            Console.WriteLine("P2's health before: " + p2.GetHealth());
            p1.Attack(p2);
            Console.WriteLine("P2's health after: " + p2.GetHealth());
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            FNPlayer player  = new FNPlayer();
            FNPlayer player2 = new FNPlayer(100, 50);

            Console.WriteLine("HP" + player.GetHealth());
            Console.WriteLine("HP" + player2.GetHealth());

            player.Attack(player2);

            Console.WriteLine("HP" + player.GetHealth());
            Console.WriteLine("HP" + player2.GetHealth());
        }