ScrollingShooter.RightClaw.RightClaw C# (CSharp) Method

RightClaw() public method

Creates a new instance of the Right Claw
public RightClaw ( uint id, Microsoft.Xna.Framework.Content.ContentManager content, Vector2 position ) : Microsoft.Xna.Framework
id uint
content Microsoft.Xna.Framework.Content.ContentManager A ContentManager to load resources with
position Microsoft.Xna.Framework.Vector2 The position of the claw in the game world
return Microsoft.Xna.Framework
        public RightClaw(uint id, ContentManager content, Vector2 position)
            : base(id)
        {
            this.position.Y = position.Y;
            this.position.X = ScrollingShooterGame.Game.GraphicsDevice.Viewport.Width + 200;
            phase = AlienClawPhase.Wait;
            this.Score = 40;

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

            spriteBounds[(int)AlienClawParts.Claw].X = 26;
            spriteBounds[(int)AlienClawParts.Claw].Y = 171;
            spriteBounds[(int)AlienClawParts.Claw].Width = 70;
            spriteBounds[(int)AlienClawParts.Claw].Height = 23;
            drawBounds[(int)AlienClawParts.Claw] = new Rectangle((int)this.position.X, (int)this.position.Y, spriteBounds[(int)AlienClawParts.Claw].Width, spriteBounds[(int)AlienClawParts.Claw].Height);

            spriteBounds[(int)AlienClawParts.Shaft].X = 0;
            spriteBounds[(int)AlienClawParts.Shaft].Y = 197;
            spriteBounds[(int)AlienClawParts.Shaft].Width = 96;
            spriteBounds[(int)AlienClawParts.Shaft].Height = 22;
            drawBounds[(int)AlienClawParts.Shaft] = new Rectangle((int)this.position.X + spriteBounds[(int)AlienClawParts.Claw].Width, (int)this.position.Y, spriteBounds[(int)AlienClawParts.Shaft].Width, spriteBounds[(int)AlienClawParts.Shaft].Height);
        }