private static void DisplayEarthMonsterInfo(EarthMonster earthMonster) { Console.WriteLine($"Id: {earthMonster.Id}"); Console.WriteLine($"Name: {earthMonster.Name}"); Console.WriteLine($"Age: {earthMonster.Age}"); Console.WriteLine($"Home: {earthMonster.Home}"); Console.WriteLine($"Is Happy: {(earthMonster.IsHappy() ? "yes" : "no")}"); Console.WriteLine($"Color: {earthMonster.Color}"); }
private static void DisplayMonsterInfoScreen(SeaMonster seaMonster, SpaceMonster spaceMonster, EarthMonster earthMonster) { DisplayHeader("Monster Info"); Console.WriteLine("Sea Monster"); DisplaySeaMonsterInfo(seaMonster); Console.WriteLine(); Console.WriteLine("Space Monster"); DisplaySpaceMonsterInfo(spaceMonster); Console.WriteLine(); Console.WriteLine("Earth Monster"); DisplayEarthMonsterInfo(earthMonster); DisplayContinuePrompt(); }