package me.shzylo.mansionazazelvisual.level;

public class TileCoordinate {

  private int x, y;
	private final int TILE_SIZE = 16;

	public TileCoordinate(int x, int y) {
		this.x = x * TILE_SIZE;
		this.y = y * TILE_SIZE;
	}

	public int x() {
		return x;
	}

	public int y() {
		return y;
	}

	public int[] xy() {
		int[] r = new int[2];
		r[0] = x;
		r[1] = y;
		return r;
	}
}

@@ -28,14 +28,8 @@
 azel
-visual
 .lev
@@ -33,16 +33,60 @@
 level;%0A%0A
+/**%0A * Tiles in the form of coordinates%0A */%0A
 public c
@@ -111,11 +111,9 @@
 e %7B%0A
-%0A  
+%09
 priv
@@ -262,154 +262,579 @@
 %7D%0A%0A%09
-public int x() %7B%0A%09%09return x;%0A%09%7D%0A%0A%09public int y() %7B%0A%09%09return y;%0A%09%7D%0A%0A%09public int%5B%5D xy() %7B%0A%09%09int%5B%5D r = new int%5B2%5D;%0A%09%09r%5B0%5D = x;%0A%09%09r%5B1%5D = y;%0A%09%09return r
+/**%0A%09 * Gets the TileCoordinate at x%0A%09 * %0A%09 * @return X%0A%09 */%0A%09public int x() %7B%0A%09%09return x;%0A%09%7D%0A%0A%09/**%0A%09 * Gets the TileCoordinate at y%0A%09 * %0A%09 * @return Y%0A%09 */%0A%09public int y() %7B%0A%09%09return y;%0A%09%7D%0A%0A%09/**%0A%09 * Returns both x and y%0A%09 * %0A%09 * @return X, Y%0A%09 */%0A%09public int%5B%5D xy() %7B%0A%09%09int%5B%5D r = new int%5B2%5D;%0A%09%09r%5B0%5D = x;%0A%09%09r%5B1%5D = y;%0A%09%09return r;%0A%09%7D%0A%0A%09/**%0A%09 * Retrieves the distance, converts into tile distance.%0A%09 * %0A%09 * @param tileDist The factor of the given distance times TILE_SIZE (16)%0A%09 * @return The tile distance%0A%09 */%0A%09public int dist(int tileDist) %7B%0A%09%09return tileDist * TILE_SIZE
 ;%0A%09%7D

Update TileCoordinate.java