package gamedata.gamecomponents;
 
import java.awt.geom.Point2D;

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

public abstract class Patch {

	private int myState;
	private int myID;
	private Point2D myLoc;
	private String myImageLocation;

	public Patch(int state, int id, String imageLocation, Point2D p) {
		myState = state;
		myID = id;
		// imageLocation in some form like "images/myImage.jpg"
		myImageLocation = imageLocation;
		myLoc = p;
	}

	// put image on the patch?
	public void draw() {
	}

	public int getMyState() {
		return myState;
	}

	public void setMyState(int myState) {
		this.myState = myState;
	}

	public int getMyID() {
		return myID;
	}

	public Point2D getLoc() {
		return myLoc;
	}

	public void setMyID(int myID) {
		this.myID = myID;
	}

	public ImageView getImageView() {
		return new ImageView(new Image(myImageLocation));
	}

	public void setMyImage(String imageLocation) {
		this.myImageLocation = imageLocation;
	}

}

@@ -260,16 +260,287 @@
 ation;%0A%0A
+%09/**%0A%09 * Constructor for patch%0A%09 * @param state of patch (this is more like type of patch: ex. fire, water, etc)%0A%09 * @param id of patch (each patch has its unique ID)%0A%09 * @param imageLocation of patch(form like %22images/myImage.jpg%22)%0A%09 * @param p coordinate of patch%0A%09 */%0A
 %09public 
@@ -635,66 +635,8 @@
 id;%0A
-%09%09// imageLocation in some form like %22images/myImage.jpg%22%0A
 %09%09my
@@ -687,417 +687,838 @@
 %09%7D%0A%0A
+%0A
 %09/
-/ put image on the patch?%0A%09public void draw() %7B%0A%09%7D%0A%0A%09public int getMyState() %7B%0A%09%09return myState;%0A%09%7D%0A%0A%09public void setMyState(int myState) %7B%0A%09%09this.myState = myState;%0A%09%7D%0A%0A%09public int getMyID() %7B%0A%09%09return myID;%0A%09%7D%0A%0A%09public Point2D getLoc() %7B%0A%09%09return myLoc;%0A%09%7D%0A%0A%09public void setMyID(int myID) %7B%0A%09%09this.myID = myID;%0A%09%7D%0A%0A%09public ImageView getImageView() %7B%0A%09%09return new ImageView(new Image(myImageLocation));%0A%09%7D%0A
+**%0A%09 * Getter for state%0A%09 * @return patch's state%0A%09 */%0A%09public int getMyState() %7B%0A%09%09return myState;%0A%09%7D%0A%0A%09/**%0A%09 * Sets patch's state%0A%09 * @param myState of patch%0A%09 */%0A%09public void setMyState(int myState) %7B%0A%09%09this.myState = myState;%0A%09%7D%0A%0A%09/**%0A%09 * Getter for ID%0A%09 * @return ID of patch%0A%09 */%0A%09public int getMyID() %7B%0A%09%09return myID;%0A%09%7D%0A%0A%09/**%0A%09 * Getter for patch's coordinate location%0A%09 * @return coord of patch%0A%09 */%0A%09public Point2D getLoc() %7B%0A%09%09return myLoc;%0A%09%7D%0A%0A%09/**%0A%09 * Sets patch's ID%0A%09 * @param myID of patch%0A%09 */%0A%09public void setMyID(int myID) %7B%0A%09%09this.myID = myID;%0A%09%7D%0A%0A%09/**%0A%09 * Getter for patch's image%0A%09 * @return image of the patch%0A%09 */%0A%09public ImageView getImageView() %7B%0A%09%09return new ImageView(new Image(myImageLocation));%0A%09%7D%0A%0A%09/**%0A%09 * Sets chosen image to patch's location%0A%09 * @param imageLocation image file's location%0A%09 */
 %0A%09pu

patch javadoc for api submission