Exemplo n.º 1
0
 // displays current location, ship name, credits, years left and fuel.
 private void CheckStatus()
 {
     Console.Clear();
     Console.WriteLine($"      Location: {MyShip.GetLocation()}");
     Console.WriteLine($"          Fuel: {MyShip.GetFuelLevel()}/{MyShip.GetFuelCapacity()}");
     Console.WriteLine($"       Credits: {MyShip.GetCredits()}");
     Console.WriteLine($"Years traveled: {40 - MyShip.GetYears()}");
     Console.WriteLine($"          Ship: {MyShip.GetShipName()}");
     Console.WriteLine();
 }