public Drone(Texture2D texture, Vector2 location, SpriteBatch spriteBatch, FighterCarrier parent) : base(texture, location, spriteBatch) { ParentShip = parent; UseCenterAsOrigin = true; Position = ParentShip.Position; WorldCoords = ParentShip.WorldCoords; Scale = new Vector2(.75f); RotateTowardsMouse = false; _initHealth = 10; BulletTexture = GameContent.GameAssets.Images.Ships.Bullets[ShipType.Drone, ShipTier.Tier1]; DamagePerShot = 1; }
public Drone(Texture2D texture, Vector2 location, SpriteBatch spriteBatch, FighterCarrier parent) : base(texture, location, spriteBatch, true) { ParentShip = parent; //parent.TierChanged += new EventHandler(parent_TierChanged); TierChanged += new EventHandler(parent_TierChanged); _hasHealthBar = false; UseCenterAsOrigin = true; Position = ParentShip.Position; WorldCoords = ParentShip.WorldCoords; Scale = new Vector2(.75f); RotateTowardsMouse = false; #if XBOX GamePadManager.One.Buttons.XButtonPressed += new EventHandler(Buttons_XButtonPressed); #endif }