Exemplo n.º 1
0
        public void SelectEarthOptions(LandingPage LP, Shop shop, ShipYard SY, GameOver GO, PersonalStatus PS, UtilityMethods UM,
                                       Ship ship, PlanetInfo PI, Fuel fuel, Asgard Asgard, Earth Earth,
                                       AlphaCentari AlphaCentari, M63 M63, PlanetX PlanetX, Titan Titan, PlanetJoe planetJoe, Vormir vormir, Picium Picium)
        {
            //convert/parse user input string
            try
            {
                int response = Convert.ToInt32(Console.ReadLine());

                //point of method access after valid user selection
                if (response == 1)
                {
                    ShipYard(UM, PS, ship, fuel, SY);
                }

                if (response == 2)
                {
                    Bank(PS, UM, ship, fuel);
                }

                if (response == 3)
                {
                    EarthShop(UM, PS, ship, fuel, PI, shop);
                }

                if (response == 4)
                {
                    Market(PS, UM, ship, fuel, PI);
                }

                if (response == 5)
                {
                    EarthPort(ship, UM, PS, fuel, PI, LP, shop, Asgard, M63, Earth, AlphaCentari, SY, GO, PlanetX, Titan, planetJoe, vormir, Picium);
                }

                if (response == 9)
                {
                    GO.EndScreen(PS, ship);
                }

                else
                {
                    //loops back to the beginning of earth page
                    Console.WriteLine("invalid entry");
                    return;
                }
            }
            catch
            {
                Console.WriteLine("Invalid Entry, try again");
                return;
            }
        }
Exemplo n.º 2
0
 public void PlanetJoePage(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, GameOver GO,
                           ShipYard SY, Shop Shop, PlanetInfo PI, LandingPage LP, Asgard Asgard, Earth Earth,
                           AlphaCentari AlphaCentari, M63 M63, PlanetX PlanetX, Titan Titan, PlanetJoe planetJoe, Vormir vormir, Picium Picium)
 {
     PS.LocationChanger("Planet Joe");
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine($"\n\n" +
                       $"\tYou arrive on the remote planet of Planet Joe, named for the king King Joe. The people of\n" +
                       $"\tPlanet Joe are wealthy beyond measure. It's honestly weird, no one on the whole planet has\n" +
                       $"\tany kind of hurry or drive. They all work hard at their shared project but only when they\n" +
                       $"\twant to, because there is no way you could pay them enough to make it worth their while.\n" +
                       $"\tAll that being said, their love of King Joe has brought them all together and they are all\n" +
                       $"\tgetting together to build a giant golden space port out of pure Space Gold. It's unfinished\n" +
                       $"\tfacade gleams in the sunlight. You look forward to checking that out and maybe picking up a\n" +
                       $"\tprofit from these gold hungry builders.\n" +
                       $"\t\tWhere would you like to go?\n");
     try
     {
         int response = UM.MainPageOptions();
         if (response == 1)
         {
             JoeShipyard(UM, PS, ship, fuel, SY);
         }
         if (response == 2)
         {
             JoeBank(UM, PS, ship, fuel);
         }
         if (response == 3)
         {
             JoeShop(UM, PS, ship, fuel, Shop, PI);
         }
         if (response == 4)
         {
             JoeMarket(UM, PS, ship, fuel, PI);
         }
         if (response == 5)
         {
             JoePort(UM, PS, ship, fuel, PI, Shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
         }
         if (response == 9)
         {
             GO.EndScreen(PS, ship);
         }
     }
     catch
     {
         Console.WriteLine("Invalid Entry, try again");
         return;
     }
 }
Exemplo n.º 3
0
        public void AlphaCentariSelector(GameOver GO, PersonalStatus PS, Ship ship, PlanetInfo PI, Fuel fuel, UtilityMethods UM,
                                         LandingPage LP, ShipYard SY, Shop Shop, Asgard Asgard, Earth Earth, AlphaCentari AlphaCentari, M63 M63, PlanetX PlanetX,
                                         Titan Titan, PlanetJoe planetJoe, Vormir vormir, Picium Picium)
        {
            try
            {
                int response = Convert.ToInt32(Console.ReadLine());

                if (response == 1)
                {
                    AlphaYard(UM, PS, ship, fuel, SY, LP, Shop, GO, PI, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
                }

                if (response == 2)
                {
                    AlphaBank(UM, PS, ship, fuel);
                }

                if (response == 3)
                {
                    AlphaShop(UM, PS, ship, fuel, PI, Shop);
                }

                if (response == 4)
                {
                    AlphaMarket(UM, PS, ship, fuel, PI);
                }

                if (response == 5)
                {
                    AlphaCentariPort(ship, PI, PS, fuel, UM, LP, SY, GO, Shop, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
                }

                if (response == 9)
                {
                    GO.EndScreen(PS, ship);
                }

                else
                {
                    Console.WriteLine("invalid entry");
                    return;
                }
            }
            catch
            {
                Console.WriteLine("Invalid Entry, try again");
                return;
            }
        }
Exemplo n.º 4
0
 public void PiciumPage(PersonalStatus PS, UtilityMethods UM, Ship ship, Fuel fuel, ShipYard SY, Shop Shop, PlanetInfo PI, LandingPage LP, GameOver GO, Asgard Asgard, Earth Earth, AlphaCentari AlphaCentari, M63 M63, PlanetX PlanetX, Titan Titan, PlanetJoe PlanetJoe, Vormir Vormir, Picium Picium)
 {
     PS.LocationChanger("Picium");
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine($"\n\n" +
                       $"\tYou step onto the planet or rather into the planet you instinctivly reach up and\n" +
                       $"\tcheck your helmet clasp. It's always disconcerting to come here since the entire\n" +
                       $"\tplanet's infestructure is underwater. Some people swim places and some people use\n" +
                       $"\tweighted boots to walk on the ground." +
                       $"\t\tWhere would you like to go?\n");
     try
     {
         int response = UM.MainPageOptions();
         if (response == 1)
         {
             PiciumShipyard(UM, PS, ship, fuel, SY);
         }
         if (response == 2)
         {
             PiciumBank(UM, PS, ship, fuel);
         }
         if (response == 3)
         {
             PiciumShop(UM, PS, ship, fuel, Shop, PI);
         }
         if (response == 4)
         {
             PiciumMarket(UM, PS, ship, fuel, PI);
         }
         if (response == 5)
         {
             PiciumPort(UM, PS, ship, fuel, PI, Shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, PlanetJoe, Vormir, Picium);
         }
         if (response == 9)
         {
             GO.EndScreen(PS, ship);
         }
     }
     catch
     {
         Console.WriteLine("Invalid Entry, try again");
         return;
     }
 }
Exemplo n.º 5
0
        //Selector for the Asgard planet menus
        public void AsgardSelector(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, GameOver GO, ShipYard SY,
                                   PlanetInfo PI, Shop Shop, LandingPage LP, Asgard Asgard, Earth Earth, AlphaCentari AlphaCentari,
                                   M63 M63, PlanetX PlanetX, Titan Titan, PlanetJoe planetJoe, Vormir vormir, Picium Picium)
        {
            try
            {
                int response = UM.MainPageOptions();

                if (response == 1)
                {
                    AsgardShipyard(UM, PS, ship, fuel, SY);
                }

                if (response == 2)
                {
                    AsgardBank(UM, PS, ship, fuel);
                }

                if (response == 3)
                {
                    AsgardShop(UM, PS, ship, fuel, PI, Shop);
                }

                if (response == 4)
                {
                    AsgardMarket(UM, PS, ship, fuel, PI);
                }

                if (response == 5)
                {
                    AsgardPort(LP, Shop, SY, GO, PS, UM, ship, PI, fuel, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
                }

                if (response == 9)
                {
                    GO.EndScreen(PS, ship);
                }
            }
            catch
            {
                Console.WriteLine("Invalid Entry, try again");
                return;
            }
        }