Beispiel #1
0
        static void Main(string[] args) //this just sets up the bare necessities for the game and then lets it run in other methods somewhere fare beyond the horizon
        {
            Room.InitializeRooms();
            Player            player      = new Player();
            ChildSpawner      spawner     = new ChildSpawner();
            MasterGameControl gameControl = new MasterGameControl(player);

            player.GetController(gameControl);
            Instructions(player);
            player.ChooseStarter(spawner);
            while (true)
            {
                player.AddInitialChoices();
            }
        }
Beispiel #2
0
        public void ChooseStarter(ChildSpawner spawner) //This method lets the player choose between 3 children and then adds them to the player's children
        {
            System.Console.WriteLine("Before you can begin your adventure of weaponizing young children for your own profit and entertainment, you must choose a starting child.");
            System.Console.WriteLine("You will be presented with 3 choices.");
            Key.Press();
            Child[]  starterChildren = new Child[3];
            string[] choices         = new string[3];
            for (int i = 0; i < starterChildren.Length; i++)
            {
                starterChildren[i] = spawner.Spawner(controller, false);
                choices[i]         = $"Name: {starterChildren[i].Name} Level: {starterChildren[i].Level}";
            }

            Children.Add(starterChildren[Selection(choices, "Choose one of the following children", true).ReturnInt]);
            activeChild = Children[Children.Count - 1];
            System.Console.WriteLine($"you chose {Children[Children.Count - 1].Name}. It is level {Children[Children.Count - 1].Level} and is {Children[Children.Count - 1].Alignment}");
        }