Exemplo n.º 1
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);
 }
Exemplo n.º 2
0
        public void SelectPlanetXOptions(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)
                {
                    PlanetXShop(UM, PS, ship, fuel, PI, shop);
                }

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

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

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

                else
                {
                    //loops back to the beginning of planet x page page
                    Console.WriteLine("invalid entry");
                    PlanetXPage(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;
            }
        }
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 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;
            }
        }
Exemplo n.º 5
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);
            }
        }
Exemplo n.º 6
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;
     }
 }
Exemplo n.º 7
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;
            }
        }
Exemplo n.º 8
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;
            }
        }
Exemplo n.º 9
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.º 10
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.º 11
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;
            }
        }
Exemplo n.º 12
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);
        }
Exemplo n.º 13
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;
            }
        }
Exemplo n.º 14
0
 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;
     }
 }
Exemplo n.º 15
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);
            }
        }
Exemplo n.º 16
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;
            }
        }
Exemplo n.º 17
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);
 }
Exemplo n.º 18
0
        public void SelectM63Options(GameOver GO, PersonalStatus PS, Ship ship, LandingPage LP, ShipYard SY,
                                     UtilityMethods UM, PlanetInfo PI, Shop Shop, Fuel fuel, 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());


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

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

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

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

                if (response == 5)
                {
                    M63Port(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);
                }

                else
                {
                    //loops back to the beginning of earth page
                    Console.WriteLine("invalid entry");
                    return;
                }
            }
            catch
            {
                Console.WriteLine("Invalid Entry, try again");
                return;
            }
        }
Exemplo n.º 19
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);
        }
Exemplo n.º 20
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);
        }