ScrollingShooter.Blimp.Blimp C# (CSharp) Method

Blimp() public method

Creates a new Blimp
public Blimp ( uint id, Vector2 position, Microsoft.Xna.Framework.Content.ContentManager content ) : System
id uint
position Vector2 The position of the Blimp in the game world
content Microsoft.Xna.Framework.Content.ContentManager A ContentManager to load resources with
return System
        public Blimp(uint id, Vector2 position, ContentManager content)
            : base(id)
        {
            this.position = position;

            spritesheet = content.Load<Texture2D>("Spritesheets/newshi.shp.000000");

            this.Health = (float)maxHealth;

            spriteBounds[(int)BlimpState.Normal].X = 13;
            spriteBounds[(int)BlimpState.Normal].Y = 10;
            spriteBounds[(int)BlimpState.Normal].Width = 70;
            spriteBounds[(int)BlimpState.Normal].Height = 130;

            spriteBounds[(int)BlimpState.Below25].X = 109;
            spriteBounds[(int)BlimpState.Below25].Y = 10;
            spriteBounds[(int)BlimpState.Below25].Width = 70;
            spriteBounds[(int)BlimpState.Below25].Height = 130;

            this.state = BlimpState.Normal;

            velocity = new Vector2(50, 0);

            this.gunTimer = 0;
            this.Score = 100;
        }