static void Main(string[] args) { var pirateZsofi = new Pirate("Zsofi"); var pirateEnemy = new Pirate("Enemy"); pirateZsofi.DrinkSomeRum(); pirateZsofi.HowsItGoingMate(); pirateZsofi.DrinkSomeRum(); pirateZsofi.HowsItGoingMate(); pirateZsofi.DrinkSomeRum(); pirateZsofi.HowsItGoingMate(); pirateZsofi.DrinkSomeRum(); pirateZsofi.HowsItGoingMate(); pirateZsofi.DrinkSomeRum(); pirateZsofi.HowsItGoingMate(); pirateZsofi.Brawl(pirateEnemy); var shipship = new Ship(); shipship.FillShip(); for (int i = 0; i < shipship.Crew.Count; i++) { Console.WriteLine(shipship.Crew[i].Name); } shipship.ShipInfo(); }
static void Main(string[] args) { Pirate pirate1 = new Pirate(); Pirate pirate2 = new Pirate(); pirate1.Names(); pirate2.Names(); Ships ship = new Ships(); while (true) { Pirate.Brawl(pirate1, pirate2); Console.WriteLine(pirate1.name + ": " + pirate1.HowsItGoingMate()); Console.WriteLine(pirate2.name + ": " + pirate2.HowsItGoingMate() + pirate2.Parrot()); Console.ReadLine(); } Console.ReadLine(); }
static void Main(string[] args) { Pirate pirateJack = new Pirate("Jack", true); Pirate pirateBlackBeard = new Pirate("Black Beard"); /*pirateJack.DrinkSomeRum(); * pirateJack.DrinkSomeRum(); * pirateJack.DrinkSomeRum(); * pirateJack.DrinkSomeRum(); * pirateJack.DrinkSomeRum(); * * pirateJack.HowsItGoingMate(); * pirateJack.HowsItGoingMate(); * pirateJack.Die(); * pirateJack.DrinkSomeRum(); * pirateJack.HowsItGoingMate();*/ pirateJack.Brawl(pirateBlackBeard); /*Pirate.Brawl(pirateJack, pirateBlackBeard);*/ Ship blackPearl = new Ship("Black Pearl"); blackPearl.FillShip(); foreach (var pirate in blackPearl.Pirates) { Console.WriteLine(pirate.Name); } foreach (var pirate in blackPearl.Pirates) { pirate.DrinkSomeRum(); pirate.HowsItGoingMate(); } Console.WriteLine(blackPearl.ToString()); Console.ReadKey(); }