/*
 * Copyright (C) 2014 Pygmy
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.dev.pygmy.game;

public class Tile {
	final private String TAG = "Tile";
	
	int[] positionPixel;
	int tileSize;
	
	public Tile(int x1, int y1, int tileSize) {
		positionPixel = new int[2];
		positionPixel[0] = x1;
		positionPixel[1] = y1;
		this.tileSize = tileSize;
	}
	
	public int[] getCoord() {
		return positionPixel;
	}
	
	public int getTileSize() {
		return tileSize;
	}
}

@@ -617,16 +617,48 @@
 .game;%0A%0A
+import android.graphics.Point;%0A%0A
 public c
@@ -708,21 +708,21 @@
 le%22;%0A%09%0A%09
+Po
 int
-%5B%5D
  positio
@@ -730,24 +730,26 @@
 Pixel;%0A%09
+Po
 int tile
 Size;%0A%09%0A
@@ -740,23 +740,223 @@
 int tile
-Size;%0A%09
+Dimensions;%0A%09%0A%09/**%0A%09 * Saves coordinates in pixels of a square tile.%0A%09 * @param posX%09position X in pixels.%0A%09 * @param posY%09position Y in pixels.%0A%09 * @param tileSquareSize%09size of any side of the square.%0A%09 */
 %0A%09public
@@ -969,18 +969,22 @@
 int 
-x1
+posX
 , int 
-y1
+posY
 , in
@@ -990,16 +990,22 @@
 nt tileS
+quareS
 ize) %7B%0A%09
@@ -1029,98 +1029,783 @@
 new 
+Po
 int
-%5B2%5D;%0A%09%09positionPixel%5B0%5D = x1;%0A%09%09positionPixel%5B1%5D = y1;%0A%09%09this.tileSize = tileSize;%0A%09%7D%0A%09
+();%0A%09%09positionPixel.x = posX;%0A%09%09positionPixel.y = posY;%0A%09%09%0A%09%09tileDimensions = new Point();%0A%09%09tileDimensions.x = tileSquareSize;%0A%09%7D%0A%09%0A%09/**%0A%09 * Saves coordinates in pixels of a rectangular tile.%0A%09 * @param posX%09position X in pixels.%0A%09 * @param posY  position Y in pixels.%0A%09 * @param tileRectangleDimensionX%09size of the horizontal side.%0A%09 * @param tileRectangleDimensionY%09size of the vertical side;%0A%09 */%0A%09public Tile(int posX, int posY, int tileRectangleDimensionX, int tileRectangleDimensionY) %7B%0A%09%09positionPixel = new Point();%0A%09%09positionPixel.x = posX;%0A%09%09positionPixel.y = posY;%0A%09%09%0A%09%09tileDimensions = new Point();%0A%09%09tileDimensions.x = tileRectangleDimensionX;%0A%09%09tileDimensions.y = tileRectangleDimensionY;%0A%09%7D%0A%09%0A%09/**%0A%09 * @return coordinates (x,y) in pixels for a tile.%0A%09 */
 %0A%09pu
@@ -1813,13 +1813,13 @@
 lic 
+Po
 int
-%5B%5D
  get
@@ -1857,16 +1857,88 @@
 l;%0A%09%7D%0A%09%0A
+%09/**%0A%09 * @return the size of a side of a tile with a square shape.%0A%09 */%0A
 %09public 
@@ -1949,16 +1949,22 @@
 getTileS
+quareS
 ize() %7B%0A
@@ -1976,19 +1976,175 @@
 urn tile
-Size
+Dimensions.x;%0A%09%7D%0A%09%0A%09/**%0A%09 * @return the dimensions of a tile with a rectangular shape.%0A%09 */%0A%09public Point getTileRectangleDimensions() %7B%0A%09%09return tileDimensions
 ;%0A%09%7D%0A%7D%0A

Add some Javadoc