public void LoadNpcs()
        {
            names = new string[files];

            for (int i = 0; i < files; i++)
            {
                names[i] = Directory.GetFiles(@"Content\npc\npc\")[i];
                StreamReader reader = new StreamReader(names[i]);
                Npc.Npc npc = new Npc.Npc(reader.ReadLine(), reader.ReadLine(), int.Parse(reader.ReadLine()), int.Parse(reader.ReadLine()), int.Parse(reader.ReadLine()), int.Parse(reader.ReadLine()),
                bool.Parse(reader.ReadLine()), bool.Parse(reader.ReadLine()), bool.Parse(reader.ReadLine()), bool.Parse(reader.ReadLine()), reader.ReadLine(), reader.ReadLine(),
                bool.Parse(reader.ReadLine()), bool.Parse(reader.ReadLine()), bool.Parse(reader.ReadLine()), bool.Parse(reader.ReadLine()), int.Parse(reader.ReadLine()),
                int.Parse(reader.ReadLine()), int.Parse(reader.ReadLine()), int.Parse(reader.ReadLine()), int.Parse(reader.ReadLine()), this, reader.ReadLine(), reader.ReadLine(), reader.ReadLine(), reader.ReadLine());
                Npcs.Add(npc);
            }
        }
 public Boss(Rectangle position, Game1 game, string map)
 {
     this.position = position;
     this.map = map;
     healthTexture = game.Content.Load<Texture2D>(@"Game\health100");
     healthPos = new Rectangle();
     texture = game.Content.Load<Texture2D>(@"Npc\sprite\Cybot");
     targetTexture = game.Content.Load<Texture2D>(@"Game\target");
     angle = Math.Atan2(Game1.character.bossTarget.Y - position.Y, Game1.character.bossTarget.X + 16 - position.X);
     robot = new Npc(position.X - 64, position.Y, 64, 64, game.Content.Load<Texture2D>(@"robot"), game, this.map, 0, false, 10, 0, 0, 0, false);
     animation = new AnimationComponent(2, 8, 54, 70, 175, Microsoft.Xna.Framework.Point.Zero);
 }