package  
{
	import net.flashpunk.Entity;
	
	import net.flashpunk.utils.Input;
	import net.flashpunk.utils.Key;
	import net.flashpunk.FP;
	
	public class Rocks extends Weapon
	{
	
		
		
		public var fire_delay:int = 0;
		public var fire_rate:uint = 15;
		public var damage:Number = 0;
		public var range:Number = 0;
		public var blast_radius:Number = 0;
		public var price:uint = 0;
		public var wallbreak:uint = 0;
		public var shoot_xoffset:Number = 13;
		public var shoot_yoffset:Number = 16;
		
		public function Rocks()
		{
			
			super();
		}
		
		override public function update():void
		{
			fire_delay--;
			//trace(fire_delay);
		}
		
		override public function shoot():void
		{
			if (fire_delay<=0) 
			{
				fire_delay = fire_rate;
				var rock:Rock = new Rock();
				rock.x = Bazaar.player.x + shoot_xoffset;
				rock.y = Bazaar.player.y + shoot_yoffset;
				FP.world.add(rock);
				super.shoot();
			}
		}
	}
}