using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace ShootingHero.Components.Bullets.PlayerBullet
{
	public class GloriaBullet : HeroBullet
	{
		static Texture2D [] texture = new Texture2D [ 2 ];

		public GloriaBullet ( Game game, float x, float y, float angle, bool specialBullet )
			: base ( game, x, y, angle, 3 )
		{
			int type = specialBullet ? 1 : 0;
			if ( texture [ type ] == null || texture [ type ].IsDisposed )
				texture [ type ] = Game.Content.Load<Texture2D> ( "Bullet/gloria_bullet" + ( type + 1 ).ToString () );
			Texture = texture [ type ];
			Width = Texture.Width;
			Power = 1;
			if ( specialBullet ) Speed = 1;
		}
	}
}
