private static void DisplayDragonMonsterInfo(DragonMonster dragonMonster) { Console.WriteLine($"Id: {dragonMonster.Id}"); Console.WriteLine($"Name: {dragonMonster.Name}"); Console.WriteLine($"Age: {dragonMonster.Age}"); Console.WriteLine($"Language: {dragonMonster.Language}"); Console.WriteLine($"Weight: {dragonMonster.Weight}"); Console.WriteLine($"Has a Tail: {dragonMonster.HasTail}"); Console.WriteLine($"Can Fly: {dragonMonster.CanFly}"); Console.WriteLine($"Is Happy: {(dragonMonster.IsHappy() ? "yes" : "no") }"); Console.WriteLine($"Is Hostile: {(dragonMonster.IsHostile() ? "yes" : "no")}"); Console.WriteLine($"Color: {dragonMonster.Color}"); Console.WriteLine($"Breath Attack Element: {dragonMonster.BreathElement}"); Console.WriteLine($"Has Treasure: {dragonMonster.HasTreasure}"); Console.WriteLine($"Alignment: {dragonMonster.DragonCivilAlignment}/{dragonMonster.DragonMoralAlignment}"); Console.WriteLine($"You attacked {dragonMonster.Name} and they {dragonMonster.MonsterBattleResponse()}"); }
static void DisplayMonsterInfoScreen(SeaMonster seaMonster, SpaceMonster spaceMonster, DragonMonster dragonMonster) { DisplayHeader("Monster Info"); Console.WriteLine("Sea Monster"); DisplaySeamMonsterInfo(seaMonster); Console.WriteLine(); Console.WriteLine("Space Monster"); DisplaySpaceMonsterInfo(spaceMonster); Console.WriteLine(); Console.WriteLine("Dragon Monster"); DisplayDragonMonsterInfo(dragonMonster); DisplayContinuePrompt(); }