예제 #1
0
        public IActionResult Damage()
        {
            Random random      = new Random();
            int    damageValue = random.Next(0, 80);

            drone.Damage(damageValue);
            ViewBag.Drone = drone.DisplayValue();



            damageValue = random.Next(0, 80);
            queen.Damage(damageValue);
            ViewBag.Queen = queen.DisplayValue();



            damageValue = random.Next(0, 80);
            worker.Damage(damageValue);
            ViewBag.Worker = worker.DisplayValue();


            return(View("Index"));
        }