public void Run() { //weapons var fiftyCal = new FiftyCal(); var grenadeLauncher = new GrenadeLauncher(); var m4 = new M4(); var m9 = new M9(); //vehicles var c130 = new C130(); var c17 = new C17(); var humv = new HUMV(); var lmtv = new LMTV(); //soldiers var specOps = new SpecOps(); var regular = new Regular(); var infantry = new Infantry(); var pogs = new POGS(); Console.WriteLine("These are the general specifications of components inside a Military Unit."); Console.WriteLine(); Console.WriteLine(); Console.WriteLine("Weapons."); Console.WriteLine("___________________________________________________________________________________________________________________"); Console.WriteLine($"The {fiftyCal.weaponName} has a caliber of {fiftyCal.weaponCaliber} with a weight of {fiftyCal.weaponWeight} pounds."); Console.WriteLine($"The {grenadeLauncher.weaponName} has a caliber of {grenadeLauncher.weaponCaliber} with a weight of {grenadeLauncher.weaponWeight} poundsb."); Console.WriteLine($"The {m4.weaponName} has a caliber of {m4.weaponCaliber} with a weight of {m4.weaponWeight} pounds."); Console.WriteLine($"The {m9.weaponName} has a caliber of {m9.weaponCaliber} with a weight of {m9.weaponWeight} pounds."); Console.WriteLine(); Console.WriteLine(); Console.WriteLine("Vehicles"); Console.WriteLine("___________________________________________________________________________________________________________________"); Console.WriteLine($"The {c130.vehicleName} uses the fuel {c130.vehicleFuel} and can carry {c130.vehiclePassengers} people."); Console.WriteLine($"The {c17.vehicleName} uses the fuel {c17.vehicleFuel} and can carry {c17.vehiclePassengers} people."); Console.WriteLine($"The {humv.vehicleName} uses the fuel {humv.vehicleFuel} and can carry {humv.vehiclePassengers} people."); Console.WriteLine($"The {lmtv.vehicleName} uses the fuel {lmtv.vehicleFuel} and can carry {lmtv.vehiclePassengers} people."); Console.WriteLine(); Console.WriteLine(); Console.WriteLine("Soldiers"); Console.WriteLine("___________________________________________________________________________________________________________________"); Console.WriteLine($"There is a soldier with the job of {specOps.soldierJob}"); Console.WriteLine($"There is a soldier with the job of {regular.soldierJob}"); Console.WriteLine($"There is a soldier with the job of {infantry.soldierJob}"); Console.WriteLine($"There is a soldier with the job of {pogs.soldierJob}"); }
static void Main(string[] args) { Console.WriteLine("You are a sergeant in a 3D Low Altitude Air Defense Unit aka LAADSOC. You are leading a team " + "of 3 other marines, a Corporal, Lance Corporal, and a Private First Class. Your team is deployed in " + "Iraq. You have been instructed to go to an 8 digit grid location and establish a stinger position."); Console.WriteLine(); //Appendix Iraq iraq = new Iraq(); M16A4 m16a4 = new M16A4(); M4 m4 = new M4(); RAZR razr = new RAZR(); PrivateFirstClass pfc = new PrivateFirstClass(); LanceCorporal lcpl = new LanceCorporal(); Corporal cpl = new Corporal(); Sergreant sgt = new Sergreant(); //End of appendix iraq.TypeOfTerrain("Iraq"); iraq.WeatherOfTheDay(); razr.Load(); razr.Drive(); razr.Turn("Right"); razr.Drive(); razr.Turn("Left"); razr.Drive(); razr.Brake(); razr.Unload(); Console.WriteLine(); pfc.Work(); lcpl.Work(); cpl.Work(); sgt.Work(); Console.WriteLine(); Console.WriteLine("It has been 6 hours and the marines begin to get hungry."); Console.WriteLine(); pfc.Eat(); lcpl.Eat(); cpl.Eat(); sgt.Eat(); Console.WriteLine(); Console.WriteLine("It is now 20:00 and time for you and your team to get some rest. You assign the Private First Class, and Corporal to take first firewatch while everyone else gets some sleep."); Console.WriteLine(); pfc.FireWatch(); cpl.FireWatch(); lcpl.Sleep(); sgt.Sleep(); Console.WriteLine(); Console.WriteLine("After a few hours of sleep...."); Console.WriteLine(); pfc.Yell(); Console.WriteLine("BANG! BANG! BANG!"); cpl.Contact(); Console.WriteLine(); lcpl.WakeUp(); sgt.WakeUp(); Console.WriteLine("The Lance Corporal grabs his M16A4, and heads towards the threat."); Console.WriteLine("You grab your M4, and head toward the threat."); Console.WriteLine(); m16a4.Aim(); m16a4.Shoot("Sharp Shooter"); Console.WriteLine(); m4.Aim(); m4.Shoot("Expert"); Console.WriteLine(); Console.WriteLine("You have repelled the threat, and notice the PFC has been shot."); pfc.Injured(); lcpl.FirstAid(); Console.WriteLine(); iraq.MissionSuccess(); Console.ReadKey(); }