package vooga.games.towerdefense.actors.towers;

import java.awt.image.BufferedImage;

import vooga.engine.resource.Resources;
import vooga.games.towerdefense.events.ShootEvent;

/**
 * This tower is a sniper. It has a huge range and a fast shot speed but a long delay between shots.
 * 
 * @author Derek Zhou, Daniel Koverman, Justin Goldsmith
 *
 */

public class Sniper extends ShootingTower{

	public final static BufferedImage IMAGE = Resources.getImage("sniperTower");
	public final static BufferedImage PREVIEW_IMAGE = Resources.getImage("sniperTowerPreview");
	public final static long SHOT_DELAY = 2000;
	public final static double RANGE = 300;
	public final static int COST = 80;
	public final static double SHOT_SPEED = 2;
	
	public Sniper(double x, double y, ShootEvent shootEvent) {
		super(IMAGE, x, y, PREVIEW_IMAGE, COST, RANGE, SHOT_SPEED, SHOT_DELAY, shootEvent);
	}
	
	public Tower clone(){
		return new Sniper(getX(), getY(), getShootEvent());
	}
}

