import java.util.TimerTask;

import javafx.scene.image.Image;
import javafx.scene.image.ImageView;

public class Enemy extends ImageView {
	
	int health = 3;
	Image sprite = new Image("placeholderLevel1.png");
	Animation an = new Animation();
	
	public Enemy() {
		health = 3; // Number of attacks required to kill the monster
		
	}
	
	public Enemy(int x, int y) {
		
	}
	
	public boolean hurt() {
		health--;
		
		if (health == 0) {
			return true;
		}
		else return false;
	}
	
	public Image getSprite() {return sprite;}
}
@@ -238,16 +238,120 @@
 on();%0A%09%0A
+%09/** constructor%0A%09 * pre: none%0A%09 * post: An Enemy object is created. Its health is initialized as 3. */%0A
 %09public 
@@ -424,24 +424,145 @@
 monster%0A
-%09%09%0A
 %09%7D%0A%09%0A
+%09/** constructor%0A%09 * pre: none%0A%09 * post: An Enemy object is created. Its health and coordinate positions are initalized. */%0A
 %09public 
@@ -571,16 +571,24 @@
 emy(int 
+hp, int 
 x, int y
@@ -597,120 +597,384 @@
 %7B%0A%09%09
-%0A%09%7D%0A%09%0A%09public boolean hurt() %7B%0A%09%09health--;%0A%09%09%0A%09%09if (health == 0) %7B%0A%09%09%09return true;%0A%09%09%7D%0A%09%09else return false;%0A%09%7D%0A%09
+health = hp;%0A%09%09setX(x);%0A%09%09setY(y);%0A%09%7D%0A%09%0A%09/** Remove health when taking damage, remove object if health is 0%0A%09 * pre: none%0A%09 * post: Health has been reduced by 1%0A%09public boolean hurt() %7B%0A%09%09health--;%0A%09%09%0A%09%09if (health == 0) %7B%0A%09%09%09return true;%0A%09%09%7D%0A%09%09else return false;%0A%09%7D%0A%09%0A%09/** Gets the sprite image that represents the object%0A%09 * pre: none%0A%09 * post: An image has been returned. */
 %0A%09pu
@@ -1014,8 +1014,9 @@
 rite;%7D%0A%7D
+%0A

Update Enemy.java