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 Medicine : Item
	{
		static Texture2D texture;

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

		public override void DoEffect ( Player player )
		{
			player.HealthPoint += 10;
			base.DoEffect ( player );
		}
	}
}
