using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using ShootingHero.Components.Manager;
using ShootingHero.Components.Bullets.BossBullet;

namespace ShootingHero.Components.Monsters.Bosses
{
	public class Komodo : Boss
	{
		static Texture2D texture;

		float lrMover = 3.141592f / 2;

		public Komodo ( Game game, float timeUnit )
			: base ( game, timeUnit, 1000 )
		{
			if ( texture == null || texture.IsDisposed )
				texture = Game.Content.Load<Texture2D> ( "Boss/komodo" );
			Texture = texture;
			TadaPosition = 200;
			Width = texture.Height / 2 - 40;
			Timer.Delay = 100;
		}

		protected override void ShootBullet ( BulletManager bulletManager )
		{
			bulletManager.Add ( new KomodoBullet ( Game, X, Y ) );
		}

		protected override void MoveLogic ( GameTime gameTime )
		{
			lrMover += gameTime.ElapsedGameTime.Milliseconds / 2000.0f;
			X += ( float ) Math.Sin ( lrMover );
		}
	}
}
