private void AddAggressiveEnemies(int numberOfEnemies)
        {
            for (int i = 0; i < numberOfEnemies; i++)
            {
                Cell enemyCell = GetRandomEmptyCell();
                var  pathFromAggressiveEnemy = new PathToPlayer(_player, _map, Content.Load <Texture2D>("White"));
                pathFromAggressiveEnemy.CreateFrom(enemyCell.X, enemyCell.Y);

                var enemy = new AggressiveEnemy(_map, pathFromAggressiveEnemy)
                {
                    X           = enemyCell.X,
                    Y           = enemyCell.Y,
                    Sprite      = Content.Load <Texture2D>("Hound"),
                    ArmorClass  = 10,
                    AttackBonus = 0,
                    Damage      = Dice.Parse("d3"),
                    Health      = 10,
                    Name        = "Hunting Hound"
                };
                _aggressiveEnemies.Add(enemy);
            }
        }
Beispiel #2
0
        private void AddAggressiveEnemies( int numberOfEnemies )
        {
            for ( int i = 0; i < numberOfEnemies; i++ )
             {
            Cell enemyCell = GetRandomEmptyCell();
            var pathFromAggressiveEnemy = new PathToPlayer( _player, _map, Content.Load<Texture2D>( "White" ) );
            pathFromAggressiveEnemy.CreateFrom( enemyCell.X, enemyCell.Y );

            var enemy = new AggressiveEnemy("Hunting Hound", 5,5,5,5,5,5,5, _map, pathFromAggressiveEnemy ) {
               X = enemyCell.X,
               Y = enemyCell.Y,
               Sprite = Content.Load<Texture2D>( "Skeleton" ),
               ArmorClass = 10,
               AttackBonus = 0,
               Damage = new Dice( new List<IDie> { new Die( Global.Random, 3 ) } ),
               Health = 10
            };
            _aggressiveEnemies.Add( enemy );
             }
        }
Beispiel #3
0
 public AggressiveEnemy(IMap map, PathToPlayer path)
 {
     _map  = map;
     _path = path;
 }
 internal AggressiveEnemy(string name, int s, int p, int e, int c, int i, int a, int l, IMap map, PathToPlayer path )
     : base(name,s,p,e,c,i,a,l)
 {
     _map = map;
      _path = path;
 }