示例#1
0
 public void Bank(PersonalStatus PS, UtilityMethods UM, Ship ship, Fuel fuel)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     UM.BankDisplay(PS);
     return;
 }
示例#2
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);
        }
示例#3
0
        public void BuyTV(int currentPlanetTV, PersonalStatus PS, UtilityMethods UM, Ship ship, Fuel fuel)
        {
            Console.Clear();
            UM.InventoryDisplay(PS, ship, fuel);
            Console.WriteLine($"" +
                              $"How many Galactic TVs would you like to buy for {currentPlanetTV} GC?");
            int quantity = Convert.ToInt32(Console.ReadLine());

            if ((quantity + PS.SpaceGold + PS.NoBalanaceShoes + PS.GalacticTVs) > ship.ShipCapacity)
            {
                Console.WriteLine($"" +
                                  $"You don't have enough room for that many Galactic TVs, you can only" +
                                  $" buy {(ship.ShipCapacity - (PS.SpaceGold + PS.NoBalanaceShoes + PS.GalacticTVs))}\n" +
                                  $"Press <enter> to return...");
                Console.ReadLine();
                return;
            }
            if ((quantity * currentPlanetTV) > PS.Cash())

            {
                Console.WriteLine($"" +
                                  $"You can't afford that many Galactic TVs\n" +
                                  $"Press <enter> to return...");
                Console.ReadLine();
                return;
            }
            PS.SpendMoney(quantity * currentPlanetTV);
            PS.GalacticTVs += quantity;
            Console.WriteLine($"" +
                              $"You have bought {quantity} bars of Space Gold for {(quantity * currentPlanetTV)} GC.\n" +
                              $"You now have {PS.Cash()} GC and {PS.GalacticTVs} Galactic TVs.");
            Console.ReadLine();
            return;
        }
示例#4
0
 public void M63Shop(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, PlanetInfo PI, Shop Shop)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine("\n\n" +
                       "\tYou've arrived at the shop on M63. Niko, the owner welcomes you to look around at all the goods." +
                       "\n\tWe've got the highest quality TV's in the universe!");
     try
     {
         int response = UM.ShopSelector();
         if (response == 1)
         {
             M63Buy(UM, PS, ship, fuel, PI, Shop);
         }
         if (response == 2)
         {
             M63Sell(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;
     }
 }
示例#5
0
 public void PiciumShipyard(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, ShipYard SY)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine($"\n\n" +
                       $"\tThe ships are all stored in these strange underwater hangers. Tubes run from the hanger to the sky so\n" +
                       $"\tthat the ships have a clear shot to space. You see other traders and swiming to their hangers the sealocks\n" +
                       $"\topening and closing letting mechanics in and out.\n\n");
     Console.WriteLine("\t\tWould you like to:\n" +
                       "\t\t  1 Check your ship stats\n" +
                       "\t\t  2 Buy a new Ship\n" +
                       "\t\t  3 Return to planetary hub");
     try
     {
         int response = Convert.ToInt32(Console.ReadLine());
         if (response == 1)
         {
             SY.ShipCheck(PS, ship, UM, fuel);
         }
         if (response == 2)
         {
             SY.PurchaseShip(PS, ship, UM, fuel);
         }
         if (response == 3)
         {
             return;
         }
     }
     catch
     {
         Console.WriteLine("Invalid Entry, try again");
         return;
     }
 }
示例#6
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;
     }
 }
示例#7
0
 public void PiciumShop(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, Shop Shop, PlanetInfo PI)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine($"\n\n" +
                       $"\t'Welcome to my shop!' the owner says to you his words coming to you distorted by the water between\n" +
                       $"Have you ever thought about how weird it is that you can hear all the people here even though you are\n" +
                       $"underwater, weird. Anyway let's buy some stuff.");
     try
     {
         int response = UM.ShopSelector();
         if (response == 1)
         {
             PiciumBuy(UM, PS, ship, fuel, PI, Shop);
         }
         if (response == 2)
         {
             PiciumSell(UM, PS, ship, fuel, Shop, PI);
         }
         if (response == 3)
         {
             fuel.BuyFuel(PS, ship);
         }
         if (response == 4)
         {
             return;
         }
     }
     catch
     {
         Console.WriteLine("Invalid Entry, try again");
         return;
     }
 }
示例#8
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;
     }
 }
示例#9
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);
        }
示例#10
0
 public void JoeShipyard(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, ShipYard SY)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine($"\n\n" +
                       $"\tYou walk into the shipyard on planet Joe and the quiet bang of the occatioanal hammer on metal\n" +
                       $"\tor maybe the sound of a drill working here or there. There seems to be salesmen but for the first\n" +
                       $"\ttime in your life you need to track them down. But the upshot is there is champagin and caviar on \n" +
                       $"\ta serving tray in the corner.\n\n");
     Console.WriteLine("\t\tWould you like to:\n" +
                       "\t\t  1 Check your ship stats\n" +
                       "\t\t  2 Buy a new Ship\n" +
                       "\t\t  3 Return to planetary hub");
     try
     {
         int response = Convert.ToInt32(Console.ReadLine());
         if (response == 1)
         {
             SY.ShipCheck(PS, ship, UM, fuel);
         }
         if (response == 2)
         {
             SY.PurchaseShip(PS, ship, UM, fuel);
         }
         if (response == 3)
         {
             return;
         }
     }
     catch
     {
         Console.WriteLine("Invalid Entry, try again");
         return;
     }
 }
示例#11
0
 public void TitanShop(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, PlanetInfo PI, Shop shop)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine("Welcome to Masterons, my name is Liam. This is a one of a kind shop we have got here.\n" +
                       "The gym is in the back if you feel like getting a quick pump in between your travels. What can I get for you today?");
     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;
     }
 }
示例#12
0
 public void PlanetXShop(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, PlanetInfo PI, Shop shop)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine("Welcome to Masterons, my name is Liam. What can I get for you today?");
     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;
     }
 }
示例#13
0
 public void ShipYard(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, ShipYard SY)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     // write flavor text about shipyard
     Console.WriteLine("\n\n" +
                       "\tYou walk into the Shipyard, the sound of welders and hammers fills the air. Ship salesman \n" +
                       "\tare weaving in and out of the ships pushing their latest ship on travelers all the while \n" +
                       "\tdodging the laborers.\n\n" +
                       "\t\tWould you like to:\n" +
                       "\t\t  1 Check your ship stats\n" +
                       "\t\t  2 Buy a new Ship\n" +
                       "\t\t  3 Return to planetary hub");
     try
     {
         int response = Convert.ToInt32(Console.ReadLine());
         if (response == 1)
         {
             SY.ShipCheck(PS, ship, UM, fuel);
         }
         if (response == 2)
         {
             SY.PurchaseShip(PS, ship, UM, fuel);
         }
         if (response == 3)
         {
             return;
         }
     }
     catch
     {
         Console.WriteLine("Invalid Entry, try again");
         return;
     }
 }
示例#14
0
 public void Retire(PersonalStatus ps, Ship ship)
 {
     Console.WriteLine("\n\n\n\n" +
                       "\t\tAs you prepare to depart, you realize that like LT Murtagh before you \n" +
                       "\t\tyou are getting too old for this shiz and decide to retire.");
     Console.ReadLine();
     EndScreen(ps, ship);
 }
示例#15
0
        public void Market(PersonalStatus PS, UtilityMethods UM, Ship ship, Fuel fuel, PlanetInfo PI)
        {
            Console.Clear();
            UM.InventoryDisplay(PS, ship, fuel);
            Console.WriteLine("--------- ");
            UM.MarketDisplay(PI);

            Console.ReadLine();
        }
示例#16
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);
 }
示例#17
0
 public void Died(PersonalStatus ps, Ship ship)
 {
     Console.WriteLine($"\n\n\n\n" +
                       $"\t\tYou have died. As is customary in Space you body is launched out into the inky blackness.\n" +
                       $"\t\tThe admiral of the frigrate that performs the rite, with a tear in his eye, salutes 'Goodbye {ps.NameCall()}\n" +
                       $"\t\tyou were one of the good ones...'");
     Console.ReadLine();
     EndScreen(ps, ship);
 }
示例#18
0
 // general display for all bank screens
 public void BankDisplay(PersonalStatus ps)
 {
     Console.WriteLine($"" +
                       $"\tYou have {ps.Cash()} Galactic Credits in your bank account.\n" +
                       $"\tThe title of Duke of Mercury is 1,000,000 Galactic Credits. You need {(1000000 - ps.Cash())} more\n" +
                       $"\tGalactic Credits before you can win the King of Venus' approval.\n\n" +
                       $"\t  Press <enter> to continue...");
     Console.ReadLine();
     GO.Win(ps, ship);
 }
示例#19
0
 public void JoeBank(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine($"\n\n" +
                       $"\tYou walk into the Galactic Bank branch of Planet Joe, the area is open and clear, there are\n" +
                       $"\tstacks of money just lying about. you walk up to the counter and the man behind the counter greets\n" +
                       $"\twarmly, 'Hello there {PS.NameCall()} are you super rich like me? Let's check...");
     UM.BankDisplay(PS);
 }
示例#20
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);
 }
示例#21
0
 public void PiciumMarket(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, PlanetInfo PI)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine("\n\n" +
                       "\tThe Picium stock exchange is beautiful. Fish swim about freely inside the building and in\n" +
                       "fact the fish are the ones that bring you the stock quotes that you are interested in, you\n" +
                       "just tell the nearby fish which stocks you are looking for and then before you know it the\n" +
                       "fish have gathered and they are all carrying the quotes you want.\n\n");
     UM.MarketDisplay(PI);
 }
示例#22
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);
 }
示例#23
0
 public void PiciumBank(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine($"\n\n" +
                       $"\tSwiming into the Galactic bank you see loan officers floating behind their desks typing\n" +
                       $"\taway at thier work. Fishmen in suits waiting to make deposits and withdraws or lining up\n" +
                       $"\tto apply for loans. You swim up to the counter and the woman behind the counter smiles to\n" +
                       $"\t as she gives you your bank info.");
     UM.BankDisplay(PS);
 }
示例#24
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;
            }
        }
示例#25
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);
 }
示例#26
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;
            }
        }
示例#27
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();
        }
示例#28
0
 public void AlphaBank(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine($"\n\n" +
                       $"\tWelcome to the Galactic Bank of Centari Four! Behind the counter is an tall old bird, his \n" +
                       $"\tspecticles are low on his beak and attached to his head by a gold chain.\n" +
                       $"\tThe high ceilings make room for doors on many levels but with no visable landing, \n" +
                       $"\tof course ground based humans like you have to come in through the 'walkers' door.\n");
     UM.BankDisplay(PS);
     Console.ReadLine();
     return;
 }
示例#29
0
 public void M63Bank(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine($"\n\n" +
                       $"\tTall white columns frame the door to the Messinese Galactic Bank branch.\n" +
                       $"\tMen and women dressed in all white are coming and going from the inside.\n" +
                       $"\tThe shining white walls of the bank hum with the electricity from the sheer\n" +
                       $"\tnumber of data transfers taking place inside. The interior is more of the \n" +
                       $"\tsame, white walls and white clothes contrasting sharply with the coal black\n");
     UM.BankDisplay(PS);
     return;
 }
示例#30
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;
     }
 }