package main.java.engine.objects;

import main.java.engine.objects.TDObject;

public class Tower extends TDObject {

	public Tower(String name, boolean unique_id, double x, double y,
			int collisionid, String gfxname) {
		super(name, unique_id, x, y, collisionid, gfxname);
		// TODO Auto-generated constructor stub
	}
}

@@ -28,16 +28,73 @@
 jects;%0A%0A
+import jgame.JGObject;%0Aimport ProjectPoseidon.Constants;%0A
 import m
@@ -128,16 +128,17 @@
 bject;%0A%0A
+%0A
 public c
@@ -172,209 +172,782 @@
  %7B%0A%0A
-%09
+    
 public 
-Tower(String name, boolean unique_id, double x, double y,%0A%09%09%09int collisionid, String gfxname) %7B%0A%09%09super(name, unique_id, x, y, collisionid, gfxname);%0A%09%09// TODO Auto-generated constructor stub%0A%09%7D
+static final String TOWER_GFX = %22tower%22;%0A    public static final int TOWER_CID = 0;%0A%0A    private double health;%0A    private double damage;%0A    private double range;%0A%0A    /**%0A     * Create a tower at the specified x,y coordinate.%0A     * @param x%0A     * @param y%0A     */%0A    public Tower (double x, double y) %7B%0A        super(%22tower%22, x, y, TOWER_CID, TOWER_GFX);%0A    %7D%0A%0A    /**%0A     * Shoot a projectile in the direction of the specified x,y target coordinates%0A     * %0A     * @param targetX%0A     * @param targetY%0A     */%0A    public void fireProjectile (double targetX, double targetY) %7B%0A        /* trigonometry from Guardian JGame example */%0A        double angle = Math.atan2(targetX - this.x, targetY - this.y);%0A        new Projectile(this.x, this.y, angle);%0A    %7D%0A
 %0A%7D%0A

Update tower constructor and add fireProjectile()