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

namespace ShootingHero.Components.Items
{
	public class Bomb : Item
	{
		static Texture2D texture;

		public Bomb ( Game game, float x, float y )
			: base ( game, x, y )
		{
			if ( texture == null || texture.IsDisposed )
				texture = Game.Content.Load<Texture2D> ( "Item/item_boom" );
			Texture = texture;
		}

		public override void DoEffect ( Player player )
		{
			player.Bomber = true;
			base.DoEffect ( player );
		}
	}
}
