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()); }
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()); }