Beispiel #1
0
 public void TravelToJumpGate(PlayerCharacter player, SolarSystem solarSystem, JumpGate jumpGate, Planet planet, Travel travel, SpacePort spaceport)
 {
     player.Location = solarSystem;
     Console.WriteLine("you are now in " + player.Location.Name);
     jumpGate.JumpGateOptions(player, planet, travel, solarSystem, spaceport, jumpGate);
 }
Beispiel #2
0
        public void SpacePortOptions(PlayerCharacter player, Planet planet, Travel travel, SolarSystem solarSystem, SpacePort spacePort, JumpGate jumpGate)
        {
            string playerSelection;

            Console.WriteLine("You are in " + spacePort.Name);
            Console.WriteLine("0) Save Game (Not yet implimented)");
            Console.WriteLine("1) Load Game (Not yet implimented)");
            Console.WriteLine("2) Quit Game (Not yet impliment)");
            Console.WriteLine("3) Buy Consumable (Not yet implimented)");
            Console.WriteLine("4) Repair (Not yet implimented)");
            Console.WriteLine("5) Go to instance01 (Not yet implimented)");
            Console.WriteLine("6) Go to instance02 (Not yet implimented)");
            Console.WriteLine("7) Go to instance03 (Not yet implimented)");
            Console.WriteLine("8) Travel to SpacePort in solar system (Not yet implimented)");
            Console.WriteLine("9) Travel to JumpGate in solar system (Not yet implimented)");
            Console.WriteLine();
            Console.WriteLine("Please enter your selection");

            playerSelection = Console.ReadLine();

            switch (playerSelection)
            {
            case "0":
                // save game method here
                Console.WriteLine("Game Saved (not really)");
                break;

            case "1":
                // load game method here
                Console.WriteLine("Game Loaded (not really)");
                break;

            case "2":
                // quit game method here
                Console.WriteLine("Game Quit (not really)");
                break;

            case "3":
                // open store method here
                Console.WriteLine("Store Loaded (not really)");
                break;

            case "4":
                // repair method here
                Console.WriteLine("Stuff Repaired (not really)");
                break;

            case "5":
                // TravelToInstance method here
                Console.WriteLine("Instance01 Loaded (not really)");
                break;

            case "6":
                // TravelToInstance method here
                Console.WriteLine("Instance02 Loaded (not really)");
                break;

            case "7":
                // TravelToInstance method here
                Console.WriteLine("Instance03 Loaded (not really)");
                break;

            case "8":
                // TravelToSpacePorts method here (this line will be the caller)

                travel.TravelToSpacePort(player, spacePort, travel, solarSystem, planet, jumpGate);
                Console.WriteLine("Travel to JumpGate (not really)");
                break;

            case "9":
                // TravelToJumpGate method here
                travel.TravelToJumpGate(player, solarSystem, jumpGate, planet, travel, spacePort);
                Console.WriteLine("Travel to JumpGate (not really)");
                break;
            }
        }
Beispiel #3
0
 public void TravelToSpacePort(PlayerCharacter player, SpacePort spacePort, Travel travel, SolarSystem solarSystem, Planet planet, JumpGate jumpGate, OptionSelector optionSelector)
 {
     // I think this is where I need to use the interface for options.
     //optionSelector.GetOption<SpacePort>();
     player.Location = spacePort;
     spacePort.SpacePortOptions(player, planet, travel, solarSystem, spacePort, jumpGate);
     Console.WriteLine("You are now in " + player.Location.Name);
 }