Esempio n. 1
0
 public void JoeShipyard(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, ShipYard SY)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine($"\n\n" +
                       $"\tYou walk into the shipyard on planet Joe and the quiet bang of the occatioanal hammer on metal\n" +
                       $"\tor maybe the sound of a drill working here or there. There seems to be salesmen but for the first\n" +
                       $"\ttime in your life you need to track them down. But the upshot is there is champagin and caviar on \n" +
                       $"\ta serving tray in the corner.\n\n");
     Console.WriteLine("\t\tWould you like to:\n" +
                       "\t\t  1 Check your ship stats\n" +
                       "\t\t  2 Buy a new Ship\n" +
                       "\t\t  3 Return to planetary hub");
     try
     {
         int response = Convert.ToInt32(Console.ReadLine());
         if (response == 1)
         {
             SY.ShipCheck(PS, ship, UM, fuel);
         }
         if (response == 2)
         {
             SY.PurchaseShip(PS, ship, UM, fuel);
         }
         if (response == 3)
         {
             return;
         }
     }
     catch
     {
         Console.WriteLine("Invalid Entry, try again");
         return;
     }
 }
Esempio n. 2
0
 public void ShipYard(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, ShipYard SY)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     // write flavor text about shipyard
     Console.WriteLine("\n\n" +
                       "\tYou walk into the Shipyard, the sound of welders and hammers fills the air. Ship salesman \n" +
                       "\tare weaving in and out of the ships pushing their latest ship on travelers all the while \n" +
                       "\tdodging the laborers.\n\n" +
                       "\t\tWould you like to:\n" +
                       "\t\t  1 Check your ship stats\n" +
                       "\t\t  2 Buy a new Ship\n" +
                       "\t\t  3 Return to planetary hub");
     try
     {
         int response = Convert.ToInt32(Console.ReadLine());
         if (response == 1)
         {
             SY.ShipCheck(PS, ship, UM, fuel);
         }
         if (response == 2)
         {
             SY.PurchaseShip(PS, ship, UM, fuel);
         }
         if (response == 3)
         {
             return;
         }
     }
     catch
     {
         Console.WriteLine("Invalid Entry, try again");
         return;
     }
 }
Esempio n. 3
0
 public void PiciumShipyard(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, ShipYard SY)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine($"\n\n" +
                       $"\tThe ships are all stored in these strange underwater hangers. Tubes run from the hanger to the sky so\n" +
                       $"\tthat the ships have a clear shot to space. You see other traders and swiming to their hangers the sealocks\n" +
                       $"\topening and closing letting mechanics in and out.\n\n");
     Console.WriteLine("\t\tWould you like to:\n" +
                       "\t\t  1 Check your ship stats\n" +
                       "\t\t  2 Buy a new Ship\n" +
                       "\t\t  3 Return to planetary hub");
     try
     {
         int response = Convert.ToInt32(Console.ReadLine());
         if (response == 1)
         {
             SY.ShipCheck(PS, ship, UM, fuel);
         }
         if (response == 2)
         {
             SY.PurchaseShip(PS, ship, UM, fuel);
         }
         if (response == 3)
         {
             return;
         }
     }
     catch
     {
         Console.WriteLine("Invalid Entry, try again");
         return;
     }
 }
Esempio n. 4
0
 public void AlphaYard(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, ShipYard SY, LandingPage LP,
                       Shop Shop, GameOver GO, PlanetInfo PI, Asgard Asgard, Earth Earth, AlphaCentari AlphaCentari, M63 M63,
                       PlanetX PlanetX, Titan Titan, PlanetJoe planetJoe, Vormir vormir, Picium Picium)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     // write flavor text about shipyard
     Console.WriteLine("\n\n" +
                       "\tYou walk into the Shipyard, the sound of welders and hammers fills the air. Ship\n" +
                       "\tsalesman are weaving in and out of the ships pushing their latest ship on travelers\n" +
                       "\tall the while dodging the laborers.\n" +
                       "\t\tWould you like to:\n" +
                       "\t\t 1 Check your ship stats\n" +
                       "\t\t 2 Buy a new Ship\n" +
                       "\t\t 3 Return to planetary hub");
     try
     {
         int response = Convert.ToInt32(Console.ReadLine());
         if (response == 1)
         {
             SY.ShipCheck(PS, ship, UM, fuel);
         }
         if (response == 2)
         {
             SY.PurchaseShip(PS, ship, UM, fuel);
         }
         if (response == 3)
         {
             LP.LandingPagePicker(LP, Shop, SY, GO, PS, UM, ship, PI, fuel, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
         }
     }
     catch
     {
         Console.WriteLine("Invalid Entry, try again");
         return;
     }
 }
Esempio n. 5
0
 public void AsgardShipyard(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, ShipYard SY)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine($"\n\n" +
                       $"\tYou walk into the shipyard of Asgard and are greeted by a man who looks like he\n" +
                       $"\tstepped right out of an old Norse myth. He smiles through his huge beard, 'Greetings\n" +
                       $"\t{PS.NameCall()} welcome to my shipyard I am Sven son of Baldur God of ship sales and\n" +
                       $"\tmaintenance. I see you have a {ship.ShipName} class ship, those are good but I think you\n" +
                       $"\tcould do better, well anyway what can I do for you?\n" +
                       $"\t\tWhat do you want to do?\n" +
                       $"\t\t1 Check on your ship\n" +
                       $"\t\t2 Buy a new ship\n" +
                       $"\t\t3 Return to the Planetary hub");
     try
     {
         int response = Convert.ToInt32(Console.ReadLine());
         if (response == 1)
         {
             SY.ShipCheck(PS, ship, UM, fuel);
         }
         if (response == 2)
         {
             SY.PurchaseShip(PS, ship, UM, fuel);
         }
         if (response == 3)
         {
             return;
         }
     }
     catch
     {
         Console.WriteLine("Invalid Entry, try again");
         return;
     }
 }