private static void DisplayDesertMonster(DesertMonster myDesertMonster) { Console.WriteLine($"Id: {myDesertMonster.Id}"); Console.WriteLine($"Name: {myDesertMonster.Name}"); Console.WriteLine($"Age: {myDesertMonster.Age}"); Console.WriteLine($"Limbs: {myDesertMonster.Limbs}"); Console.WriteLine($"Cold Blooded: {myDesertMonster.ColdBlood}"); Console.WriteLine($"Home Desert: {myDesertMonster.HomeDesert}"); Console.WriteLine($"You Attacked {myDesertMonster.Name} and they {myDesertMonster.MonsterBattleResponse()} in response"); }
private static void EditDesertMonster(DesertMonster myDesertMonster) { DisplayHeader("Edit Your Desert Monster"); Console.WriteLine("What would you like to change the desert monster's name to?"); myDesertMonster.Name = Console.ReadLine(); Console.WriteLine(); Console.WriteLine("What is the new ID for the Desert Monster?"); myDesertMonster.Id = int.Parse(Console.ReadLine()); Console.WriteLine(); Console.WriteLine("What is their new age?"); myDesertMonster.Age = int.Parse(Console.ReadLine()); Console.WriteLine(); Console.WriteLine("How many limbs does this monster now have?"); myDesertMonster.Limbs = int.Parse(Console.ReadLine()); Console.WriteLine(); Console.WriteLine("What is its new home desert?"); myDesertMonster.HomeDesert = Console.ReadLine(); }
private static void DisplayEditMonster(SeaMonster mySeaMonster, SpaceMonster mySpaceMonster, DesertMonster myDesertMonster) { string menuSelection; bool exitMenu = false; do { DisplayHeader("Edit your Monster"); Console.WriteLine("Please Select A Monster to edit"); Console.WriteLine($"A) {mySeaMonster.Name}"); Console.WriteLine($"B) {mySpaceMonster.Name}"); Console.WriteLine($"C) Insert Third Monster Here"); Console.WriteLine("D) Return to Main Menu"); menuSelection = Console.ReadLine().ToUpper(); switch (menuSelection) { case "A": EditSeaMonster(mySeaMonster); break; case "B": EditSpaceMonster(mySpaceMonster); break; case "C": break; case "D": exitMenu = true; break; default: break; } } while (!exitMenu); }
private static void DisplayMonsterInfoScreen(SeaMonster seasMonster, SpaceMonster spaceMonster, DesertMonster myDesertMonster) { DisplayHeader("Monster Info"); Console.WriteLine("Sea Monster"); DisplaySeaMonsterInfo(seasMonster); Console.WriteLine(); Console.WriteLine("Space Monster"); DisplaySpaceMonster(spaceMonster); Console.ReadKey(); }