Example #1
0
        /// <summary>
        /// Initializes combat.  0 = random, 1 = bounded, 2 = particular.  Low doubles as particular.
        /// </summary>
        /// <param name="player"></param>
        /// <param name="type"></param>
        public static void start_Combat(PlayerCharacter player, int type, int low, int high)
        {
            BlankEnemy enemy;

            if (type == 0)
            {
                enemy = new BlankEnemy(get_Random_Enemy());
            }
            else if (type == 1)
            {
                enemy = new BlankEnemy(get_Bounded_Enemy(low, high));
            }
            else
            {
                enemy = new BlankEnemy(get_Particular_Enemy(low));
            }

            Console.WriteLine("A " + enemy.get_Name() + " has appeared!");
            enemy.print_Enemy_Data();

            CombatHandler.combat_Loop(player, enemy);
        }
Example #2
0
 /// <summary>
 /// The main loop for combat, in which the player and enemy take turns fighting each other.
 /// </summary>
 /// <param name="player"></param>
 /// <param name="enemy"></param>
 public static void combat_Loop(PlayerCharacter player, BlankEnemy enemy)
 {
 }