예제 #1
0
        private static IMonster InstantiatePlayer()
        {
            ConsoleExtras.ColorLine("Enter a class: " + string.Join(", ", Enum.GetNames(typeof(Race))));
            IMonster player = GetMonster(ConsoleExtras.GetRaceInput());

            ConsoleExtras.ColorLine("\nWrite stat inputs for your monster.", ConsoleColor.Cyan);
            ConsoleExtras.ColorLine("TIP: if input is outside range, it will be automatically put within range", ConsoleColor.DarkYellow);
            GetStatInfo(player, out int health, out int defence, out int power, out int speed);

            return(player.Initialize(health, defence, power, speed));
        }
예제 #2
0
        public void Start()
        {
            Console.WriteLine("Enter a class: " + string.Join(", ", Enum.GetNames(typeof(Race))));

            _player = GetMonster(ConsoleExtras.GetRaceInput(), 1);
            Thread.Sleep(10); // Seperate the seed for System.Random's algorithm.
            _enemy  = InstantiateEnemy(_player.Race, _player.Level);
            _random = new Random();

            Continue = true;
            _round   = 0;
            _wave    = 1;
        }