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

namespace ShootingHero.Components.Bullets.BossBullet
{
	public class SharkBullet : MonsterBullet
	{
		Texture2D texture;

		public SharkBullet ( Game game, float x, float y )
			: base ( game, x, y, 0, 2 )
		{
			if ( texture == null || texture.IsDisposed )
				texture = Game.Content.Load<Texture2D> ( "Bullet/bullet_shark" );
			Texture = texture;
			Player player = ( ( Game.Components [ 0 ] as Transitor ).CurrentScene as GameScene ).Player;
			Angle = ( float ) Math.Atan2 ( player.Y - Y, player.X - X ) + 3.141592f / 2;
			AttackPoint = 5;
		}
	}
}
