//****************************************
        // THIS IS FOR THE MINION CLASS
        //****************************************
        public UI(Game game, SpriteBatch spriteBatch, Camera2D cam, MouseHandler mH, MinionBase m)
        {
            this.game = game;
            this.spriteBatch = spriteBatch;
            this.cam = cam;
            this.mH = mH;

            pos = new Vector2(m.Position.X, m.ImageRec.Height);
            progBox = game.Content.Load<Texture2D>("UtilityTextures/RedBox");
            healthBox = game.Content.Load<Texture2D>("UtilityTextures/RedBox");
            size = new Rectangle((int)m.Position.X, (int)m.Position.Y, m.ImageRec.Width / 10, 10);
            sBar = new StatusBar(m.Position, healthBox, health, size, "Right", spriteBatch, cam);
            //font
            spriteName = game.Content.Load<SpriteFont>("menufont");
            fontLoc = new Vector2(m.Position.X, m.Position.Y - 10);
            name = m.UnitName;
        }
        private void AddUnit()
        {
            destination.X = this.Position.X - 100;
            destination.Y = this.Position.Y - 100;

            minB = new MinionBase(spriteBatch, game, cam, mH);
            minB.Position = this.Position;
            minB.UnitName = "Min" + counter;
            testCase.Add(minB);
            minB.Destination = destination;
            counter++;
        }
        private void GetObject(MinionBase m)
        {
            pos = new Vector2(m.Position.X, m.Position.Y + m.ImageRec.Height);

            //font
            name = m.UnitName;
            fontLoc.X = m.Position.X;
            fontLoc.Y = m.Position.Y - 20;
            //end font

            health = m.Health;

            size = new Rectangle((int)pos.X, (int)pos.Y, m.ImageRec.Width / 10, 10);
            h = new Texture2D[health];
            sBar = new StatusBar(pos, healthBox, health, size, "Right", spriteBatch, cam);
        }
 public void Update(GameTime gameTime, MinionBase m)
 {
     GetObject(m);
 }