Beispiel #1
0
 public Enemy(Enemy other)
 {
     Name = other.Name;
     Description = other.Description;
     HP = other.HP;
     Armor = other.Armor;
     AttackDice = new List<Die>(other.AttackDice);
     Tags = new List<Tag>(other.Tags);
     SpecialMoves = new List<Move>(other.SpecialMoves);
 }
Beispiel #2
0
        public void AddRandomNumberOfEnemies(Enemy e, int min, int max)
        {
            var time = DateTime.Now;
            var random = new Random(time.Millisecond * time.Minute * time.Second);
            var n = random.Next(min, max);

            for(var i = 0; i < n; i++)
            {
                Enemies.Add(new Enemy(e));
            }
        }