Inheritance: PGCGame.Ships.Allies.BaseAllyShip
コード例 #1
0
        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;
        }
コード例 #2
0
ファイル: Drone.cs プロジェクト: GreatMindsRobotics/PGCGame
        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
        }