Beispiel #1
0
        public void EarthPage(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)


        {
            //clear up window
            Console.Clear();

            //display menu on earth upon arrival
            UM.InventoryDisplay(PS, ship, fuel);
            Console.WriteLine("\n\n" +
                              "\t'Welcome to Earth!' earth ambassador Will Smith says dressed in his now \n" +
                              "\ticonic US Air Force pilots uniform'Home planet of us Humans.' He smiles \n" +
                              "\tbroadly stepping to the side and allowing you to pass. As you step by him\n" +
                              "\tthe streets of Merica, the famous capital of Earth, are packed with busy humans\n" +
                              "\tmoving in and out of the buildings. Self driving cars clog the streets and the\n" +
                              "\tside walks are full to the gills with people.\n\n" +
                              "\t\tWhere would you like to go? \n" +
                              "\t\t  1. Ship Yard \n" +
                              "\t\t  2. Galactic Bank \n" +
                              "\t\t  3. Buy, Sell, Trade \n" +
                              "\t\t  4. Galactic Market\n" +
                              "\t\t  5. Departure Port\n\n" +
                              "\t\t  9. Quit the Game");

            //send back to check selected option after invalid input
            SelectEarthOptions(LP, Shop, SY, GO, PS, UM, ship, PI, fuel, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
        }
Beispiel #2
0
 public void AlphaCentariPage(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)
 {
     PS.LocationChanger("AlphaCentari");
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.Write("\n\n" +
                   "\tWelcome to Alpha Centari! You stand in the port city of Macawalani. Centarian birdpeople fly to and fro. \n" +
                   "\tYou spot a few pairs of No Balances here and there but whats the point when you have wings? \n" +
                   "\tStilted building dominate the skyline, your human sensability is assualted by the seemingly \n" +
                   "\trandom way the doors are arranged until you see a Centarian fly up to a sixth floor door and\n" +
                   "\tenter the building. The air is surprisingly clear from the lack of vehicles in the city center.\n" +
                   "\tIt's not just Centarians though, you see a large amount of humans from your own region of space, \n" +
                   "\tsome are earth humans but you spot a blue Venusian and a orange mercurian amoung them. \n" +
                   "\tComing out of the docks you even spot a Pician fellow his telltale glass helmet \n" +
                   "\tkeeping his gills underwater. \n\n" +
                   "\t\tWhere would you like to go? \n" +
                   "\t\t 1. Ship Yard \n" +
                   "\t\t 2. Galactic Bank of Centari IV \n" +
                   "\t\t 3. Buy, Sell, Trade \n" +
                   "\t\t 4. Galactic Stock Exchange\n" +
                   "\t\t 5. Departure Port\n\n" +
                   "\t\t 9. Quit game\n" +
                   "\t\t Enter your choice: ");
     AlphaCentariSelector(GO, PS, ship, PI, fuel, UM, LP, SY, Shop, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
 }
Beispiel #3
0
        public void VormirPage(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)


        {
            //clear up window
            Console.Clear();

            //display menu on Vormir upon arrival
            PS.LocationChanger("Vormir");
            UM.InventoryDisplay(PS, ship, fuel);
            Console.WriteLine("Welcome to the desolate planet of Vormir. Our treasures are vast and we are home to the unkown. \n" +
                              "\tMany travel to this destination and few are able to make it out." +
                              "\tIf you are pure of heart then you should have nothing to worry about. \n" +
                              "\t\tWhere would you like to go? \n" +
                              "\t\t  1. Ship Yard \n" +
                              "\t\t  2. Galactic Bank \n" +
                              "\t\t  3. Buy, Sell, Trade \n" +
                              "\t\t  4. Galactic Market\n" +
                              "\t\t  5. Departure Port\n\n" +
                              "\t\t  9. Quit the Game");


            //send back to check selected option after invalid input
            SelectVormirOptions(LP, Shop, SY, GO, PS, UM, ship, PI, fuel, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
        }
Beispiel #4
0
 public void M63Market(PlanetInfo PI, PersonalStatus PS, UtilityMethods UM, Ship ship, Fuel fuel)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine($"\n\n" +
                       $"\tWelcome to the Epic Market on M63, where your opportunity for wealth is boundless and the \n" +
                       $"\tproducts are of the most elegant varieties.");
     UM.MarketDisplay(PI);
 }
Beispiel #5
0
        public void AlphaCentariPort(Ship ship, PlanetInfo PI, PersonalStatus PS, Fuel fuel,
                                     UtilityMethods UM, LandingPage LP, ShipYard SY, GameOver GO, Shop Shop, Asgard Asgard,
                                     Earth Earth, AlphaCentari AlphaCentari, M63 M63, PlanetX PlanetX, Titan Titan, PlanetJoe planetJoe, Vormir vormir, Picium Picium)
        {
            double playerWarpSpeed = (Math.Pow(ship.ShipSpeed, 10 / 3) + Math.Pow(10 - ship.ShipSpeed, -11 / 3));

            Console.Clear();
            Console.WriteLine($"\n\n" +
                              $"\tWind swirls around you as a ships takes off to some new and exciting destination.\n" +
                              $"\tPorts like this always make you miss home a little but the dream of the \n" +
                              $"\tDukedom of Mercury and the thoughts of your upcoming(hopefully)\n" +
                              $"\tnuptuals drive you forward.");

            string response = UM.PortMenu(PI.AlphaCentariXPosition, PI.AlphaCentariYPosition, UM, PS, ship, fuel, PI);


            if (response == "earth")
            {
                UM.PortTravel(PI.AlphaCentariXPosition, PI.EarthXPosition, PI.AlphaCentariYPosition, PI.EarthYPosition, "Earth", UM, PS, fuel, ship, PI, Shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "M63")
            {
                UM.PortTravel(PI.AlphaCentariXPosition, PI.M63XPosition, PI.AlphaCentariYPosition, PI.M63YPosition, "M63", UM, PS, fuel, ship, PI, Shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "asgard")
            {
                UM.PortTravel(PI.AlphaCentariXPosition, PI.AsgardXPosition, PI.AlphaCentariYPosition, PI.AsgardYPosition, "Asgard", UM, PS, fuel, ship, PI, Shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "x")
            {
                UM.PortTravel(PI.AlphaCentariXPosition, PI.PlanetXXPosition, PI.AlphaCentariYPosition, PI.PlanetXYPosition, "Planet X", UM, PS, fuel, ship, PI, Shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "titan")
            {
                UM.PortTravel(PI.AlphaCentariXPosition, PI.TitanXPosition, PI.AlphaCentariYPosition, PI.TitanYPosition, "Titan", UM, PS, fuel, ship, PI, Shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "joe")
            {
                UM.PortTravel(PI.AlphaCentariXPosition, PI.PlanetJoeXPosition, PI.AlphaCentariYPosition, PI.PlanetJoeYPosition, "Planet Joe", UM, PS, fuel, ship, PI, Shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "vormir")
            {
                UM.PortTravel(PI.AlphaCentariXPosition, PI.VormirXPosition, PI.AlphaCentariYPosition, PI.VormirYPosition, "Vormir", UM, PS, fuel, ship, PI, Shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "picium")
            {
                UM.PortTravel(PI.AlphaCentariXPosition, PI.PiciumXPosition, PI.AlphaCentariYPosition, PI.PiciumYPosition, "Picium", UM, PS, fuel, ship, PI, Shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "return")
            {
                return;
            }
        }
Beispiel #6
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;
            }
        }
Beispiel #7
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;
     }
 }
Beispiel #8
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;
            }
        }
Beispiel #9
0
        public void M63Port(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)
        {
            double playerWarpSpeed = (Math.Pow(ship.ShipSpeed, 10 / 3) + Math.Pow(10 - ship.ShipSpeed, -11 / 3));

            Console.Clear();
            UM.InventoryDisplay(PS, ship, fuel);

            string response = UM.PortMenu(PI.M63XPosition, PI.M63YPosition, UM, PS, ship, fuel, PI);



            if (response == "earth")
            {
                UM.PortTravel(PI.M63XPosition, PI.EarthXPosition, PI.M63YPosition, PI.EarthYPosition, "Earth", UM, PS, fuel, ship, PI, Shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "centari")
            {
                UM.PortTravel(PI.M63XPosition, PI.AlphaCentariXPosition, PI.M63YPosition, PI.AlphaCentariYPosition, "AlphaCentari", UM, PS, fuel, ship, PI, Shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "asgard")
            {
                UM.PortTravel(PI.M63XPosition, PI.AsgardXPosition, PI.M63YPosition, PI.AsgardYPosition, "Asgard", UM, PS, fuel, ship, PI, Shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "x")
            {
                UM.PortTravel(PI.M63XPosition, PI.PlanetXXPosition, PI.M63YPosition, PI.PlanetXYPosition, "Planet X", UM, PS, fuel, ship, PI, Shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "titan")
            {
                UM.PortTravel(PI.M63XPosition, PI.TitanXPosition, PI.M63YPosition, PI.TitanYPosition, "Titan", UM, PS, fuel, ship, PI, Shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "joe")
            {
                UM.PortTravel(PI.M63XPosition, PI.PlanetJoeXPosition, PI.M63YPosition, PI.PlanetJoeYPosition, "Planet Joe", UM, PS, fuel, ship, PI, Shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "Vormir")
            {
                UM.PortTravel(PI.M63XPosition, PI.VormirXPosition, PI.M63YPosition, PI.VormirYPosition, "Vormir", UM, PS, fuel, ship, PI, Shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "picium")
            {
                UM.PortTravel(PI.M63XPosition, PI.PiciumXPosition, PI.M63YPosition, PI.PiciumYPosition, "Picium", UM, PS, fuel, ship, PI, Shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "return")
            {
                return;
            }
        }
Beispiel #10
0
 public void AsgardPage(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)
 {
     PS.LocationChanger("Asgard");
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine($"\n\n" +
                       $"\tGolden spires and beautiful vistas greet you as soon as you land. The rainbow\n" +
                       $"\tbifrost is visable in the distance. It's as beautiful as you always imagined it\n" +
                       $"\twould be. It's just like the legends. Waterfalls and spill off cliffs that lead to\n" +
                       $"\tnowhere. The grand Mead-hall can be barely seen past some clouds and the distant \n" +
                       $"\tsound of drunken revelry carries across the open space.\n" +
                       $"\t\tWhere would you like to go?\n");
     AsgardSelector(UM, PS, ship, fuel, GO, SY, PI, Shop, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
 }
Beispiel #11
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;
            }
        }
Beispiel #12
0
        public void LandingPagePicker(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)
        {
            if (PS.LocationCheck() == "Earth")
            {
                Earth.EarthPage(LP, Shop, SY, GO, PS, UM, ship, PI, fuel, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (PS.LocationCheck() == "AlphaCentari")
            {
                AlphaCentari.AlphaCentariPage(LP, Shop, SY, GO, PS, UM, ship, PI, fuel, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (PS.LocationCheck() == "M63")
            {
                M63.M63Page(LP, Shop, SY, GO, PS, UM, ship, PI, fuel, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (PS.LocationCheck() == "Asgard")
            {
                Asgard.AsgardPage(LP, Shop, SY, GO, PS, UM, ship, PI, fuel, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (PS.LocationCheck() == "Planet X")
            {
                PlanetX.PlanetXPage(LP, Shop, SY, GO, PS, UM, ship, PI, fuel, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (PS.LocationCheck() == "Titan")
            {
                Titan.TitanPage(LP, Shop, SY, GO, PS, UM, ship, PI, fuel, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (PS.LocationCheck() == "Planet Joe")
            {
                PlanetX.PlanetXPage(LP, Shop, SY, GO, PS, UM, ship, PI, fuel, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (PS.LocationCheck() == "Vormir")
            {
                vormir.VormirPage(LP, Shop, SY, GO, PS, UM, ship, PI, fuel, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (PS.LocationCheck() == "Picium")
            {
                Picium.PiciumPage(PS, UM, ship, fuel, SY, Shop, PI, LP, GO, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }

            LandingPagePicker(LP, Shop, SY, GO, PS, UM, ship, PI, fuel, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
        }
Beispiel #13
0
        //PersonalStatus PS = new PersonalStatus();

        public void PlanetXPage(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)
        {
            PS.LocationChanger("Planet X");



            Console.Clear();
            //display menu on earth upon arrival
            UM.InventoryDisplay(PS, ship, fuel);
            Console.WriteLine("\n\n" +
                              "\tWelcome to Planet X! Not a lot of beings know we exist, but you are lucky\n" +
                              "\tto have found our planet. There is truly no greater honor than walking the\n" +
                              "\tRuberian Colloseum and feeling the spirits of the elite warriors that have\n" +
                              "\tbattled to lifes end. We are home to the universe's most lethal gladiators, \n" +
                              "\tand our vast wealth and prosperity is proof of that." +
                              "\n\t\t1. ShipYard" +
                              "\n\t\t2. Galactic Bank" +
                              "\n\t\t3. Buy, Sell, Trade" +
                              "\n\t\t4. Galactic Market" +
                              "\n\t\t5. Departure Port" +
                              "\n\t\t9. Quit Game");


            //send back to check selected option after invalid input
            try
            {
                SelectPlanetXOptions(LP, Shop, SY, GO, PS, UM, ship, PI, fuel, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }

            //display if invalid input
            catch (Exception)
            {
                Console.WriteLine("Invalid input, try again! Press any key to continue.");
                Console.ReadLine();

                //recycle to Welcome to planet x after invalid entry
                PlanetXPage(LP, Shop, SY, GO, PS, UM, ship, PI, fuel, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
        }
Beispiel #14
0
        public void Buy(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, PlanetInfo PI, Shop Shop)
        {
            Console.Clear();
            UM.InventoryDisplay(PS, ship, fuel);
            Console.WriteLine($"\n\n" +
                              $"\tYou have {PS.Cash()} Galactic Credits, what good would you like to buy?\n" +
                              $"\t 1 NoBalanceShoes 80 GC per Unit\n" +
                              $"\t 2 Space Gold 100 GC per Unit\n" +
                              $"\t 3 Galactic TV 120 GC per Unit \n" +
                              $"\t 4 Return to Shop");
            try
            {
                int response = Convert.ToInt32(Console.ReadLine());
                //Buy Shoes
                if (response == 1)
                {
                    Shop.BuyShoes(PI.EarthNoBalanceShoes, PS, UM, ship, fuel);
                }
                //Buy Gold
                if (response == 2)
                {
                    Shop.BuyGold(PI.EarthSpaceGold, PS, UM, ship, fuel);
                }

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

                if (response == 4)
                {
                    return;
                }
            }
            catch
            {
                Console.WriteLine("Invalid Entry, try again");
                return;
            }
        }
 // single place for all the market displays
 public void MarketDisplay(PlanetInfo PI)
 {
     Console.WriteLine($"\tEarth: \n" +
                       $"\t\tNo Balance Shoes: {PI.EarthNoBalanceShoes} \n" +
                       $"\t\tSpace Gold: {PI.EarthSpaceGold} \n" +
                       $"\t\tGalactic TVs: {PI.EarthGalacticTVs}\n\n" +
                       $"\tAlpha Centari:\n" +
                       $"\t\tNo Balance Shoe: {PI.AlphaCentariNoBalanceShoes}\n" +
                       $"\t\tSpace Gold: {PI.AlphaCentariGold}\n" +
                       $"\t\tGalactic TVs: {PI.AlphaCentariGalacticTVs}\n\n" +
                       $"\tM63:\n" +
                       $"\t\tNo Balance Shoes: {PI.M63NoBalanceShoes}\n" +
                       $"\t\tSpace Gold: {PI.M63SpaceGold}\n" +
                       $"\t\tGalactic TVs: {PI.M63GalacticTVs} \n" +
                       $"\tAsgard:\n" +
                       $"\t\tNo Balance Shoes: {PI.AsgardNoBalanceShoes}\n" +
                       $"\t\tSpace Gold: {PI.AsgardGold}\n" +
                       $"\t\tGalactic TVs: {PI.AsgardGalacticTVs}\n" +
                       $"\tPlanet X:\n" +
                       $"\t\tNo Balance Shoes: {PI.PlanetJoeNoBalanceShoes}\n" +
                       $"\t\tSpace Gold: {PI.PlanetXGold}\n" +
                       $"\t\tGalactic TVs: {PI.PlanetXGalacticTVs}\n" +
                       $"\tVormir:\n" +
                       $"\t\tNo Balance Shoes: {PI.VormirNoBalanceShoes}\n" +
                       $"\t\tSpace Gold: {PI.VormirGold}\n" +
                       $"\t\tGalactic TVs {PI.VormirGalacticTVs}\n" +
                       $"\tPicium:\n" +
                       $"\t\tNo Balance Shoes: {PI.PiciumNoBalanaceShoes}\n" +
                       $"\t\tSpace Gold: {PI.PiciumGold}\n" +
                       $"\t\tGalactic TVs: {PI.PiciumGalacticTVs}\n" +
                       $"\tTitan:\n" +
                       $"\t\tNo Balance Shoes: {PI.TitanNoBalanceShoes}\n" +
                       $"\t\tSpace Gold: {PI.TitanGold}\n" +
                       $"\t\tGalactic TVs: {PI.TitanGalacticTVs}\n" +
                       $"\tPlanet Joe:\n" +
                       $"\t\tNo Balance Shoes: {PI.PlanetJoeNoBalanceShoes}\n" +
                       $"\t\tSpace Gold: {PI.PlanetJoeGold}\n" +
                       $"\t\tGalactic TVs: {PI.PlanetJoeGalacticTVs}\n");
     Console.ReadLine();
 }
Beispiel #16
0
        public void Sell(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, PlanetInfo PI, Shop Shop)
        {
            Console.Clear();
            UM.InventoryDisplay(PS, ship, fuel);
            Console.WriteLine($"\n\n" +
                              $"\tYou have {PS.NoBalanaceShoes} pairs of No Balance Shoes, \n" +
                              $"\t{PS.SpaceGold} bars of Space Gold \n" +
                              $"\t{PS.GalacticTVs} sets of Galactic TVs.\n" +
                              $"\tWhich would you like to sell?\n" +
                              $"\t  1 No Balance Shoes\n" +
                              $"\t  2 Space Gold\n" +
                              $"\t  3 Galactic TVs\n" +
                              $"\t  4 or Return to the Shop");
            try
            {
                int response = Convert.ToInt32(Console.ReadLine());
                if (response == 1)
                {
                    Shop.SellShoes(PI.EarthNoBalanceShoes, PS, UM, ship, fuel);
                }

                if (response == 2)
                {
                    Shop.SellGold(PI.EarthSpaceGold, PS, UM, ship, fuel);
                }
                if (response == 3)
                {
                    Shop.SellTV(PI.EarthGalacticTVs, PS, UM, ship, fuel);
                }
                if (response == 4)
                {
                    return;
                }
            }
            catch
            {
                Console.WriteLine("Invalid Entry, try again");
                return;
            }
        }
Beispiel #17
0
        public void TitanPage(LandingPage LP, Shop Shop, ShipYard SY, GameOver GO, PersonalStatus PS,
                              UtilityMethods UM, Ship ship, PlanetInfo PI, Fuel fuel, Asgard asgard, Earth earth, AlphaCentari alpha, M63 m63,
                              PlanetX PlanetX, Titan Titan, PlanetJoe planetJoe, Vormir vormir, Picium picium)
        {
            PS.LocationChanger("Titan");



            //display menu on earth upon arrival
            UM.InventoryDisplay(PS, ship, fuel);
            Console.WriteLine("Welecome to Titan, the oldest planet in the universe. This planet has survived every disaster in history and still stands tall as" +
                              "\none of the universal leaders. We excel in importing and exporting the most desirable goods in the universe. Our world leader is Dwayne Johnson, " +
                              "\nso you could say we are all pretty yoked due to his anabolic policy." +
                              "\n1. ShipYard" +
                              "\n2. Galactic Bank" +
                              "\n3. Buy, Sell, Trade" +
                              "\n4. Galactic Market" +
                              "\n5. Departure Port" +
                              "\n9. Quit Game");


            //send back to check selected option after invalid input
            try
            {
                SelectTitanOptions(LP, Shop, SY, GO, PS, UM, ship, PI, fuel, asgard, earth, alpha, m63, PlanetX, Titan, planetJoe, vormir, picium);
            }

            //display if invalid input
            catch (Exception)
            {
                Console.WriteLine("Invalid input, try again! Press any key to continue.");
                Console.ReadLine();

                //recycle to Welcome to planet x after invalid entry
                TitanPage(LP, Shop, SY, GO, PS, UM, ship, PI, fuel, asgard, earth, alpha, m63, PlanetX, Titan, planetJoe, vormir, picium);
            }
        }
Beispiel #18
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;
     }
 }
Beispiel #19
0
        public void M63Page(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)
        {
            PS.LocationChanger("M63");
            Console.Clear();
            UM.InventoryDisplay(PS, ship, fuel);
            Console.WriteLine("\n\n" +
                              "\tWelcome to the star system M63, named for Messier star cluster circling a black hole.\n" +
                              "\tAs you walk into the streets the first thing that you notice is that everything is\n" +
                              "\tclean and bright white. None of the architecture has a scrap of color anywhere, the\n" +
                              "\tonly exception is the flat holographic ads that are projected up on some of the walls\n" +
                              "\tbut even thier colors are muted. The Messinese that you see all wear the same color white\n" +
                              "\tof the buildings but in stark contrast their skin is as black as the hole their star orbits" +
                              "\n\n\t\tWhere would you like to go? \n" +
                              "\t\t1. Ship Yard \n" +
                              "\t\t2. Galactic Bank \n" +
                              "\t\t3. Buy, Sell, Trade \n" +
                              "\t\t4. Galactic Market\n" +
                              "\t\t5. Departure Port\n\n" +
                              "\t\t9. Quit the Game");
            try
            {
                SelectM63Options(GO, PS, ship, LP, SY, UM, PI, Shop, fuel, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }

            //display if invalid input
            catch (Exception)
            {
                Console.WriteLine("Invalid input, try again! Press any key to continue.");
                Console.ReadLine();

                //recycle to Welcome to m63 after invalid entry
                return;
            }
        }
Beispiel #20
0
        public void EarthPort(Ship ship, UtilityMethods UM, PersonalStatus PS, Fuel fuel, PlanetInfo PI, LandingPage LP, Shop shop, Asgard Asgard, M63 M63, Earth Earth, AlphaCentari AlphaCentari, ShipYard SY, GameOver GO, PlanetX PlanetX, Titan Titan, PlanetJoe planetJoe, Vormir vormir, Picium Picium)
        {
            Console.Clear();
            UM.InventoryDisplay(PS, ship, fuel);

            string response = UM.PortMenu(PI.EarthXPosition, PI.EarthYPosition, UM, PS, ship, fuel, PI);


            if (response == "titan" || response == "Titan")
            {
                UM.PortTravel(PI.EarthXPosition, PI.TitanXPosition, PI.EarthYPosition, PI.TitanYPosition, "Titan", UM, PS, fuel, ship, PI, shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }

            if (response == "centari")
            {
                UM.PortTravel(PI.EarthXPosition, PI.AlphaCentariXPosition, PI.EarthYPosition, PI.AlphaCentariYPosition, "AlphaCentari", UM, PS, fuel, ship, PI, shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "m63")
            {
                UM.PortTravel(PI.EarthXPosition, PI.M63XPosition, PI.EarthYPosition, PI.M63YPosition, "M63", UM, PS, fuel, ship, PI, shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "asgard")
            {
                UM.PortTravel(PI.EarthXPosition, PI.AsgardXPosition, PI.EarthYPosition, PI.AsgardYPosition, "Asgard", UM, PS, fuel, ship, PI, shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "x")
            {
                UM.PortTravel(PI.EarthXPosition, PI.PlanetXXPosition, PI.EarthYPosition, PI.PlanetXYPosition, "Planet X", UM, PS, fuel, ship, PI, shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }

            if (response == "joe")
            {
                UM.PortTravel(PI.EarthXPosition, PI.PlanetJoeXPosition, PI.EarthYPosition, PI.PlanetJoeYPosition, "Planet Joe", UM, PS, fuel, ship, PI, shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "vormir")
            {
                UM.PortTravel(PI.VormirXPosition, PI.PlanetXXPosition, PI.VormirYPosition, PI.PlanetXYPosition, "Vormir", UM, PS, fuel, ship, PI, shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "picium")
            {
                UM.PortTravel(PI.EarthXPosition, PI.PiciumXPosition, PI.EarthYPosition, PI.PiciumYPosition, "Picium", UM, PS, fuel, ship, PI, shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "return")
            {
                return;
            }
        }
        public string PortMenu(double currentX, double currentY, UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, PlanetInfo PI)
        {
            double playerWarpSpeed = (Math.Pow(ship.ShipSpeed, 10 / 3) + Math.Pow(10 - ship.ShipSpeed, -11 / 3));

            Console.WriteLine($"\n\n" +
                              $"\tWhere would you like to go? \n");

            if (UM.FuelCheck(currentX, PI.AlphaCentariXPosition, currentY, PI.AlphaCentariYPosition, ship, PS, fuel) == "OK")
            {
                Console.WriteLine($"" +
                                  $"\t\t<centari> Alpha Centari : {UM.PlanetDistance(currentX, PI.AlphaCentariXPosition, currentY, PI.AlphaCentariYPosition)} Light years away which will take {UM.PlanetDistance(currentX, PI.AlphaCentariXPosition, currentY, PI.AlphaCentariYPosition) / playerWarpSpeed} years\n");
            }

            if (UM.FuelCheck(currentX, PI.AsgardXPosition, currentY, PI.AsgardYPosition, ship, PS, fuel) == "OK")
            {
                Console.WriteLine($"" +
                                  $"\t\t<asgard> Asgard : {UM.PlanetDistance(currentX, PI.AsgardXPosition, currentY, PI.AsgardYPosition)} Light years away which will take {UM.PlanetDistance(currentX, PI.AsgardXPosition, currentY, PI.AsgardYPosition) / playerWarpSpeed} years\n");
            }

            if (UM.FuelCheck(currentX, PI.EarthXPosition, currentY, PI.EarthYPosition, ship, PS, fuel) == "OK")
            {
                Console.WriteLine($"" +
                                  $"\t\t<earth> Earth : {UM.PlanetDistance(currentX, PI.EarthXPosition, currentY, PI.EarthYPosition)} Light years away which will take {UM.PlanetDistance(currentX, PI.EarthXPosition, currentY, PI.EarthYPosition) / playerWarpSpeed} years\n");
            }

            if (UM.FuelCheck(currentX, PI.M63XPosition, currentY, PI.M63YPosition, ship, PS, fuel) == "OK")
            {
                Console.WriteLine($"" +
                                  $"\t\t<m63> M63 : {UM.PlanetDistance(currentX, PI.M63XPosition, currentY, PI.M63YPosition)} Light years away which will take {UM.PlanetDistance(currentX, PI.M63XPosition,currentY, PI.M63YPosition) / playerWarpSpeed} years\n");
            }

            if (UM.FuelCheck(currentX, PI.PlanetXXPosition, currentY, PI.PlanetXYPosition, ship, PS, fuel) == "OK")
            {
                Console.WriteLine($"" +
                                  $"\t\t<x> Planet X : {UM.PlanetDistance(currentX, PI.PlanetXXPosition, currentY, PI.PlanetXYPosition)} Light years away which will take {UM.PlanetDistance(currentX, PI.PlanetXXPosition, currentY, PI.PlanetXYPosition) / playerWarpSpeed} years\n");
            }

            if (UM.FuelCheck(currentX, PI.TitanXPosition, currentY, PI.TitanYPosition, ship, PS, fuel) == "OK")
            {
                Console.WriteLine($"" +
                                  $"\t\t<titan> Titan : {UM.PlanetDistance(currentX, PI.TitanXPosition, currentY, PI.TitanYPosition)} Light years away which will take {UM.PlanetDistance(currentX, PI.TitanXPosition, currentY, PI.TitanYPosition) / playerWarpSpeed} years\n");
            }

            if (UM.FuelCheck(currentX, PI.VormirXPosition, currentY, PI.VormirYPosition, ship, PS, fuel) == "OK")
            {
                Console.WriteLine($"" +
                                  $"\t\t<x> Planet X : {UM.PlanetDistance(currentX, PI.VormirXPosition, currentY, PI.VormirYPosition)} Light years away which will take {UM.PlanetDistance(currentX, PI.VormirXPosition, currentY, PI.VormirYPosition) / playerWarpSpeed} years\n");
            }

            if (UM.FuelCheck(currentX, PI.PiciumXPosition, currentY, PI.PiciumYPosition, ship, PS, fuel) == "OK")
            {
                Console.WriteLine($"" +
                                  $"\t\t<picium> Picium : {UM.PlanetDistance(currentX, PI.PiciumXPosition, currentY, PI.PiciumYPosition)} Light years away which will take {UM.PlanetDistance(currentX, PI.PiciumXPosition, currentY, PI.PiciumYPosition) / playerWarpSpeed} years\n");
            }

            Console.WriteLine($"" +
                              $"\t\t<return> Return to earth");
            string response = Console.ReadLine();

            return(response);
        }
 public void PortTravel(double currentX, double destinationX, double currentY, double destinationY, string destination, UtilityMethods UM, PersonalStatus PS, Fuel fuel, Ship ship, PlanetInfo PI, Shop shop, ShipYard SY, LandingPage LP,
                        Asgard Asgard, Earth Earth, AlphaCentari AlphaCentari, M63 M63, PlanetX PlanetX, Titan Titan, PlanetJoe planetJoe, Vormir vormir, Picium Picium)
 {
     if (UM.FuelCheck(currentX, destinationX, currentY, destinationY, ship, PS, fuel) == "OK")
     {
         UM.PlanetTravel(currentX, destinationX, currentY, destinationY, ship, PS, fuel);
         UM.Travel(PS);
         PS.LocationChanger(destination);
         LP.LandingPagePicker(LP, shop, SY, GO, PS, UM, ship, PI, fuel, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
     }
     if (UM.FuelCheck(currentX, destinationX, currentY, destinationY, ship, PS, fuel) == "TooFar")
     {
         UM.TooFar(currentX, destinationX, currentY, destinationY, fuel);
         return;
     }
 }
Beispiel #23
0
        public void JoePort(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, PlanetInfo PI, Shop shop, ShipYard SY,
                            LandingPage LP, 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);
            Console.WriteLine($"\n\n" +
                              $"\tThis is it, the famous Space Gold space port. It gleams brighter than you ever thought possible,\n" +
                              $"\tso bright in fact that it hurts your eyes a little. But if nothing else you must admit it is one of\n" +
                              $"\tthe most impressive things you've ever seen.\n");
            string response = UM.PortMenu(PI.PlanetJoeXPosition, PI.PlanetJoeYPosition, UM, PS, ship, fuel, PI);


            if (response == "titan" || response == "Titan")
            {
                UM.PortTravel(PI.PlanetJoeXPosition, PI.TitanXPosition, PI.PlanetJoeYPosition, PI.TitanYPosition, "Titan", UM, PS, fuel, ship, PI, shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }

            if (response == "centari")
            {
                UM.PortTravel(PI.PlanetJoeXPosition, PI.AlphaCentariXPosition, PI.PlanetJoeYPosition, PI.AlphaCentariYPosition, "AlphaCentari", UM, PS, fuel, ship, PI, shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "m63")
            {
                UM.PortTravel(PI.PlanetJoeXPosition, PI.M63XPosition, PI.PlanetJoeYPosition, PI.M63YPosition, "M63", UM, PS, fuel, ship, PI, shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "asgard")
            {
                UM.PortTravel(PI.PlanetJoeXPosition, PI.AsgardXPosition, PI.PlanetJoeYPosition, PI.AsgardYPosition, "Asgard", UM, PS, fuel, ship, PI, shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "x")
            {
                UM.PortTravel(PI.PlanetJoeXPosition, PI.PlanetXXPosition, PI.PlanetJoeYPosition, PI.PlanetXYPosition, "Planet X", UM, PS, fuel, ship, PI, shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "picium")
            {
                UM.PortTravel(PI.PlanetJoeXPosition, PI.PiciumXPosition, PI.PlanetJoeYPosition, PI.PiciumYPosition, "Picium", UM, PS, fuel, ship, PI, shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "vormir")
            {
                UM.PortTravel(PI.PlanetJoeXPosition, PI.VormirXPosition, PI.PlanetJoeYPosition, PI.VormirYPosition, "Vormir", UM, PS, fuel, ship, PI, shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "earth")
            {
                UM.PortTravel(PI.PlanetJoeXPosition, PI.EarthXPosition, PI.PlanetJoeYPosition, PI.EarthYPosition, "Earth", UM, PS, fuel, ship, PI, shop, SY, LP, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
            }
            if (response == "return")
            {
                return;
            }
        }
Beispiel #24
0
 public void JoeMarket(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, PlanetInfo PI)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine("\n\n" +
                       "\tWhen you go to enter the stock exchange you immediately notice a glaring inconsistancy with this\n" +
                       "\tmarket. It doesnt exist. There is a small display showing the prices of commdities but that is all\n" +
                       "\tand the Gold is lit up rather bright but that is it, no pomp, no circumstance, just a few numbers on\n" +
                       "\ta small screen.\n\n");
     UM.MarketDisplay(PI);
 }
Beispiel #25
0
 public void JoeShop(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, Shop Shop, PlanetInfo PI)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine($"\n\n" +
                       $"\tYou walk into the shop, everything in the shop is too expensive for you to purchase. Part of you\n" +
                       $"\twonder if you should even be in the same room with it. A shopkeeper dressed all in silks and gold\n" +
                       $"\tsteps out and talks to you, 'Hello there traveler...' he looks over your clothes and then says, \n" +
                       $"\t'The trading commodities are this way...' He says in a hesitant tone of voice.");
     try
     {
         int response = UM.ShopSelector();
         if (response == 1)
         {
             JoeBuy(UM, PS, ship, fuel, PI, Shop);
         }
         if (response == 2)
         {
             JoeSell(UM, PS, ship, fuel, PI, Shop);
         }
         if (response == 3)
         {
             fuel.BuyFuel(PS, ship);
         }
         if (response == 4)
         {
             return;
         }
     }
     catch
     {
         Console.WriteLine("Invalid Entry, try again");
         return;
     }
 }
Beispiel #26
0
 public void Market(PersonalStatus PS, UtilityMethods UM, Ship ship, Fuel fuel, PlanetInfo PI)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine("\n\n" +
                       "\tThe Galactic Stock exchange glitters and flashes, and down but you worry about the three perenial commodities.\n" +
                       "\tNo Balance Shoes, the zero gravity shoes that changed the way the galaxy moves. \n" +
                       "\tSpace Gold, it's like the gold everyone knows and loves but shinier and better in every way.\n" +
                       "\tAnd Galactic TVs, TVs so thin that you can't even see them unless you are standing in front of them.\n" +
                       $"\tThe display flashes their market prices. \n\n");
     UM.MarketDisplay(PI);
 }
Beispiel #27
0
 public void EarthShop(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, PlanetInfo PI, Shop Shop)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine("\n\n" +
                       "\t'Welcome to my little shop!' The man behind the counter says. His Earth flag bandana, a \n" +
                       "\tmodified version of Old Glory with the stars replaced with a picture of the planet earth, \n" +
                       "\tis made from light enhanced fabric that shines even in the dark. He smiles at you his dirty \n" +
                       "\tblond scruff offsetting his brigthly whitened teeth. 'I've got all the Space Gold and TVs a \n" +
                       "\ttrader like you could ever want, and have you seen these new zero grav shoes? They are all \n" +
                       "\tthe rage out on the larger planets.\n\n");
     try
     {
         int response = UM.ShopSelector();
         if (response == 1)
         {
             Buy(UM, PS, ship, fuel, PI, Shop);
         }
         if (response == 2)
         {
             Sell(UM, PS, ship, fuel, PI, Shop);
         }
         if (response == 3)
         {
             fuel.BuyFuel(PS, ship);
         }
         if (response == 4)
         {
             return;
         }
     }
     catch
     {
         Console.WriteLine("Invalid Entry, try again");
         return;
     }
 }
Beispiel #28
0
        public void Market(PersonalStatus PS, UtilityMethods UM, Ship ship, Fuel fuel, PlanetInfo PI)
        {
            Console.Clear();
            UM.InventoryDisplay(PS, ship, fuel);
            Console.WriteLine("\n\n" +
                              "\tThe Ruberian Market is full of galactic TVs displaying the trends of the universe. " +
                              "\n\tYou push your way through the crowd of people watching and betting on the current battle " +
                              "\n\tto get a good view of the current universe market prices... ");
            UM.MarketDisplay(PI);

            Console.ReadLine();
        }
Beispiel #29
0
 public void AlphaMarket(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, PlanetInfo PI)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine($"\n\n" +
                       $"\tThe city of Macawalani on Centari IV has the largest stock exchange for a light year in any direction.\n" +
                       $"\tBut unlike the exchanges of earth it's nearly silent in the exchange. The Centarians are famously capatalistic and the \n" +
                       $"\tMacawalani exchange is almost like a temple. But it takes you hardly any time at all to find the entries of your\n" +
                       $"\tclassic moneymakers...\n");
     UM.MarketDisplay(PI);
 }
Beispiel #30
0
 public void AlphaShop(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, PlanetInfo PI, Shop Shop)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine("\n\n" +
                       "\t\tYou arrive at the shop on Alpha Centari. The owner, Brahman welcomes you. 'What's up, \n" +
                       "\t\tmane you know that we have the highest quality gold in the universe!'");
     try
     {
         int response = UM.ShopSelector();
         if (response == 1)
         {
             AlphaBuy(UM, PS, ship, fuel, PI, Shop);
         }
         if (response == 2)
         {
             AlphaSell(UM, PS, ship, fuel, PI, Shop);
         }
         if (response == 3)
         {
             fuel.BuyFuel(PS, ship);
         }
         if (response == 4)
         {
             return;
         }
     }
     catch
     {
         Console.WriteLine("Invalid Entry, try again");
         return;
     }
 }