Example #1
0
        static void Main(string[] args)
        {
            DialogHelper.Dialog("Hello Adventurer, please state your name!\n", ConsoleColor.Blue);
            Adventurer.NameHero();

            if (String.IsNullOrEmpty(Adventurer.Name))
            {
                DialogHelper.Dialog("Im sorry traveller i didn't catch your name, what was it again?\n", ConsoleColor.Blue);
                Adventurer.NameHero();
            }

            DialogHelper.Dialog("Welcome " + Adventurer.Name + ", these are grave times! An evil wizard threatens the lands!!", ConsoleColor.Blue);

            var acceptTheQuest = AcceptingQuest();

            if (acceptTheQuest)
            {
                Adventurer.GeneratePlayerStats();
            }
            else
            {
                DialogHelper.Dialog("That is a shame, i guess we will have to wait for the next brave adventurer! Farewell Traveller!", ConsoleColor.Blue);
                Environment.Exit(0);
            }

            StartAdventure();
        }