public MinionBase(SpriteBatch spriteBatch, Game game, Camera2D cam, MouseHandler mH) : base(spriteBatch, game, cam, mH) { Image = game.Content.Load<Texture2D>("KC_Pong"); ImageRec = new Rectangle((int)Position.X, (int)Position.Y, Image.Width, Image.Height); Position = new Vector2(50, 50); OType = "minionbase"; Health = 100; ui = new UI(game, spriteBatch, cam, mH, this); unitName = "Minion!"; }
public Building(SpriteBatch spriteBatch, Game game, Camera2D cam, MouseHandler mH) : base(spriteBatch, game, cam, mH) { Image = game.Content.Load<Texture2D>("CPU_Pong"); ImageRec = new Rectangle((int)Position.X, (int)Position.Y, Image.Width, Image.Height); unitName = "test"; uniqueName = "101"; OType = "building"; Health = 100; bList = BuildingList.Barracks; bUL = new BandUList(game, spriteBatch, cam, this.Image, this.Position, bList); uI = new UI(game, spriteBatch, cam, mH, this); this.spriteBatch = spriteBatch; this.game = game; this.cam = cam; this.mH = mH; }