示例#1
0
        // quick list of all the class declerations
        // 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
        //LP, Shop, SY, GO, PS, UM, ship, PI, fuel, Asgard, Earth, AlphaCentari, M63
        public void FirstPage()
        {
            Console.Write("\n\n\n" +
                          "\t\t\t\t                  D U K E                  \n" +
                          "\t\t\t\t                    O F                    \n" +
                          "\t\t\t\t               M E R C U R Y               \n" +
                          "\t\t\t\t  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" +
                          "\t\t\t\t |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|\n" +
                          "\t\t\t\t | |   .      .  _____________  .     *   ||\n" +
                          "\t\t\t\t | |     *      / _    \\    \\ \\  .        ||\n" +
                          "\t\t\t\t | |  .        / /#\\    \\    \\ \\__    *   ||\n" +
                          "\t\t\t\t | |    .  *  | |##|    |    | |##\\       ||\n" +
                          "\t\t\t\t | |#####     | |##|    |    | |###\\      ||\n" +
                          "\t\t\t\t | |######   _|_|##|____|____|_|####\\     ||\n" +
                          "\t\t\t\t | |#######<| | //\\ | /\\\\    CAMEL   |    ||\n" +
                          "\t\t\t\t | |#######<|_|||  \\|/ ||____________|    ||\n" +
                          "\t\t\t\t | |######   . ||  /*\\ ||     * .    *    ||\n" +
                          "\t\t\t\t | |#####  .    \\\\/_|_\\//                 ||\n" +
                          "\t\t\t\t | |   *     .   -------     .     *    . ||\n" +
                          "\t\t\t\t | |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~||\n" +
                          "\t\t\t\t |_~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|\n\n" +
                          "\t\t\t\t  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" +
                          "\n\t\t\t\t    Hello, welcome to Duke Of Mercury!\n" +
                          "\t\t\t\t  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" +
                          "\t\t\t\t\t   What is your name? ");

            //Setting the starting stats

            PS.WhatsMyName(Console.ReadLine());
            PS.LocationChanger("Earth");

            //clears the text
            Console.Clear();

            //add story here
            Console.WriteLine($"\n\n\n\n" +
                              $"\t\tOkay, {PS.NameCall()}. You were engaged to Venusian royalty but the king of Venus has forbidden your beloved \n" +
                              $"\t\tto marry a mere commoner like yourself. But there is even worse news! \n" +
                              $"\t\tYour beloved has other interested parties, and what's worse is they are already nobility. \n" +
                              $"\t\tBut you are in luck there is a way to buy into galactic nobility, but it's going to be a lot of work. \n" +
                              $"\t\tYou've got a {ship.ShipName} class ship and {PS.Cash()} Galactic Credits, \n" +
                              $"\t\tso get out there and get to trading, {PS.NameCall()}!\n\n" +
                              $"\n\n\n\n\n\n\n\n\t\t\tPress enter to continue past this or any screen in this game.");

            Console.ReadLine();

            LP.LandingPagePicker(LP, Shop, SY, GO, PS, UM, ship, PI, fuel, Asgard, Earth, AlphaCentari, M63, PlanetX, Titan, planetJoe, vormir, Picium);
        }
示例#2
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);
 }
示例#3
0
 public void AsgardBank(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine($"\n\n" +
                       $"\tYou walk into the bank which is easily one of the most expensive buildings you've ever" +
                       $"\tbeen in. It seems everything in Asgard is either a deadly steel blade or made entirely" +
                       $"\tfrom space gold. The banker smiles at you, 'Welcome to the Asgardian branch of the Galactic" +
                       $"\tBank {PS.NameCall()} I am the Thrador! Son of Spandar, God of Banking and money exchange!' He" +
                       $"\tquite boisterous for a banker. He taps away at some glowing runes carved into the gold top" +
                       $"\tof the counter.");
     UM.BankDisplay(PS);
     return;
 }
示例#4
0
 public void Win(PersonalStatus ps, Ship ship)
 {
     if (ps.Cash() > 1000000)
     {
         Console.WriteLine($"\n\n\n\n" +
                           $"\t\tYou cash in your million credits for favor and influence, \n" +
                           $"\t\tsoon you are whisked away on a golden chariot inside a golden spaceship. \n" +
                           $"\t\tIt's not long before you arrive at your beautiful new estate on Mercury. \n" +
                           $"\t\tThe days here are short and hot but it's all yours. Your new butler leads \n" +
                           $"\t\tyou inside 'Duke {ps.NameCall()} these are your new digs, and over here' he says \n" +
                           $"\t\tindicating a large banquet hall 'is where your big ceremony will be.' \n\n" +
                           $"\t\tYou marry your beloved and live happily ever after!\n" +
                           $"\t\tCongratulations! You won the game!");
         Console.ReadLine();
         EndScreen(ps, ship);
     }
 }
示例#5
0
 public void AsgardShipyard(UtilityMethods UM, PersonalStatus PS, Ship ship, Fuel fuel, ShipYard SY)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine($"\n\n" +
                       $"\tYou walk into the shipyard of Asgard and are greeted by a man who looks like he\n" +
                       $"\tstepped right out of an old Norse myth. He smiles through his huge beard, 'Greetings\n" +
                       $"\t{PS.NameCall()} welcome to my shipyard I am Sven son of Baldur God of ship sales and\n" +
                       $"\tmaintenance. I see you have a {ship.ShipName} class ship, those are good but I think you\n" +
                       $"\tcould do better, well anyway what can I do for you?\n" +
                       $"\t\tWhat do you want to do?\n" +
                       $"\t\t1 Check on your ship\n" +
                       $"\t\t2 Buy a new ship\n" +
                       $"\t\t3 Return to the Planetary hub");
     try
     {
         int response = Convert.ToInt32(Console.ReadLine());
         if (response == 1)
         {
             SY.ShipCheck(PS, ship, UM, fuel);
         }
         if (response == 2)
         {
             SY.PurchaseShip(PS, ship, UM, fuel);
         }
         if (response == 3)
         {
             return;
         }
     }
     catch
     {
         Console.WriteLine("Invalid Entry, try again");
         return;
     }
 }
示例#6
0
        // travel between the stars can be dangerous
        public void Travel(PersonalStatus ps)
        {
            int travelEvent = rnd.Next(1, 11);

            Console.Clear();
            Console.WriteLine("3...\n2...\n1...\nBlast Off!!");
            Console.ReadLine();
            Console.Clear();
            Console.WriteLine("" +
                              "    *    .     *    \n" +
                              " #===>     *      . \n" +
                              "      *      *     *");
            Console.ReadLine();
            Console.Clear();
            Console.WriteLine("" +
                              "    *  .    .   * .  \n" +
                              "  *  ###===>  .   *  \n" +
                              "    .    . *      *  \n");
            Console.ReadLine();
            //random event
            if (travelEvent > 5)
            {
                Console.WriteLine("You found some space gold out there!");
                if ((ps.SpaceGold + ps.NoBalanaceShoes + ps.GalacticTVs + 1) > ship.ShipCapacity)
                {
                    Console.WriteLine("You dont have enough room for it though. Sad day...");
                    Console.ReadLine();
                }
                if ((ps.SpaceGold + ps.NoBalanaceShoes + ps.GalacticTVs + 1) <= ship.ShipCapacity)
                {
                    ps.SpaceGold += 1;
                    Console.WriteLine($"You now have {ps.SpaceGold} space gold");
                    Console.ReadLine();
                }
            }
            if (travelEvent == 5)
            {
                Console.WriteLine($"It's lonely out there in space {ps.NameCall()}. You are doing great! Keep it up!");
                Console.ReadLine();
            }
            if (travelEvent < 5 && travelEvent > 1)
            {
                if (ps.Cash() < 10)
                {
                    Console.WriteLine("The Pirates killed you because you couldnt pay their 10 GC toll.");
                    Console.ReadLine();
                    GO.Died(ps, ship);
                }
                else
                {
                    Console.WriteLine("Pirate attack! You lost 10 GC to them");
                }
                ps.SpendMoney(10);
                Console.WriteLine($"You now have {ps.Cash()} GCs");
                Console.ReadLine();
            }
            if (travelEvent == 1)
            {
                Console.WriteLine($"The galaxies worst pirates attack you but you easily overpower them. \n" +
                                  $"'Please don't kill us {ps.NameCall()}, we will give you 100 GC if you let us go!' \n" +
                                  $"You let them off easy this time...");
                ps.EarnMoney(100);
                Console.ReadLine();
            }
            Console.ReadLine();
            Console.Clear();
            Console.WriteLine("" +
                              "    *   *     .    *  \n" +
                              "   *  . ###===> .   * \n" +
                              "  *   .    .     *     ");
            Console.ReadLine();
            Console.Clear();
            Console.WriteLine("" +
                              "          *         . \n" +
                              "     *     .   ###===>\n" +
                              "   *        *   .   .   ");
            Console.ReadLine();
        }
示例#7
0
 public void ShipCheck(PersonalStatus PS, Ship ship, UtilityMethods UM, Fuel fuel)
 {
     Console.Clear();
     UM.InventoryDisplay(PS, ship, fuel);
     Console.WriteLine($"\n\n" +
                       $"\tYou arrive at your personal hanger, you ship, a {ship.ShipName} the SS {PS.NameCall()}, stands \n" +
                       $"\tbefore you gleaming in the artificail lights of the hanger. \n" +
                       $"\tA {ship.ShipName} like this has {ship.ShipCapacity} slots in its cargo hold \n" +
                       $"\tand a top speed of Warp Factor {ship.ShipSpeed}\n" +
                       $"\tInside the hold you have: \n" +
                       $"\t{PS.NoBalanaceShoes} boxes of No Balance Shoes \n" +
                       $"\t{PS.SpaceGold} bars of Space Gold \n" +
                       $"\t{PS.GalacticTVs} boxes of Galactic TVs\n\n" +
                       $"\t\tPress enter to continue...");
     Console.ReadLine();
     return;
 }
示例#8
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);
 }