private static void ArtyCompany() { Soldier joe = new Enlisted(); Soldier pl = new Officer(); Weapon weapon = new Artillery(); Units company = new Company(); Console.WriteLine($"A typical Artillery platoon consists of: {company.strength} Personnel"); Console.WriteLine("All the enlisted men say " + joe.Describe()); Console.WriteLine("While the officer says " + pl.Describe()); Console.WriteLine("Soldiers use the " + weapon.Name); Console.WriteLine("With a " + weapon.Load()); }
static void InfantryPlt() { Soldier joe = new Enlisted(); Soldier pl = new Officer(); Weapon rifle = new Rifle(); Units platoon = new Platoon(); Console.WriteLine($"A typical Infantry company consists of: {platoon.strength} Personnel"); Console.WriteLine("All the enlisted men say " + joe.Describe()); Console.WriteLine("While the officer says " + pl.Describe()); Console.WriteLine("Every Soldier carries a " + rifle.Name); Console.WriteLine("Loaded with " + rifle.Load()); }
private static void Tank() { Soldier joe = new Enlisted(); Soldier pl = new Officer(); Soldier chief = new Warrant(); Weapon tank = new Tank(); Units platoon = new Platoon(); Console.WriteLine($"A typical armor platoon consists of: {platoon.strength} Personnel"); Console.WriteLine("All the enlisted men say " + joe.Describe()); Console.WriteLine("While the officer says " + pl.Describe()); Console.WriteLine("The maintenance chief says " + chief.Describe()); Console.WriteLine("Soldiers use the " + tank.Name); Console.WriteLine("With a " + tank.Load()); }
static void Main(string[] args) { Story part1 = new Story(); part1.Intro(); Console.WriteLine("Choose 1 to leave. Choose 2 to stay"); int choice = int.Parse(Console.ReadLine()); if (choice == 1) { Console.WriteLine("You and your men leave, but the injured men slow you down. The Zulu tribe finds you " + "and you die."); System.Environment.Exit(0); } else { Console.WriteLine("Now that you've decided to stay you must build up the defenses"); } British B = new British(); Officer John = new Officer(); Console.WriteLine("You give the order:"); Console.WriteLine(); John.Orders("Men! Build a wall around us!"); Enlisted E = new Enlisted(); E.Brit(); E.Reports(); Console.WriteLine("Your men built up the defense just in time because you see off in the distance, the chief.."); Console.ReadLine(); Chief C = new Chief(); Warrior W = new Warrior(); Spear stick = new Spear(); Shield newsheild = new Shield(); C.Point("The cheif points in your direction"); Console.WriteLine(); Songs singing = new Songs(); ZuluSong zuSong = new ZuluSong(); BritSong brisong = new BritSong(); singing.Sing(); zuSong.Zsong(); brisong.Sing(); brisong.Bsong(); Console.WriteLine($" The Cheif:"); C.Yell(); W.Run(); W.Yell(); Console.WriteLine("The warriors will be here soon, they run fast. With them they have weapons"); stick.Stab(); newsheild.Defense(); newsheild.Sheild(); Story Part2 = new Story(); Part2.Middle(); Weapons arms = new Weapons(); Sword S = new Sword(); Rifle R = new Rifle(); Pistol P = new Pistol(); S.Defense(); S.Looks(); R.Defense(); R.Shoots(); P.Defense(); P.handgun(); Choose(); Console.WriteLine("You then start to give commands to your men"); John.Orders("Front Rank. Fire!"); John.Orders("Back Rank. Fire!"); Story part3 = new Story(); part3.End(); Console.BackgroundColor = ConsoleColor.Cyan; Console.ForegroundColor = ConsoleColor.Black; Console.WriteLine("THE END"); zuSong.Disclaimer(); part3.Disclaimer(); }