Rewrites some JavaDoc.
Removes the getTileAt and setBoundingBoxOrigin functions that worked with Point objects.
@@ -89,36 +89,21 @@ public class Component {
}
/**
- * Retrieves a tile from the screen.
+ * Retrieves a tile from the component's TileGrid.
*
* @param x
- * The x-axis coordinate of the tile to retrieve.
+ * The x-axis coordinate of the tile.
*
* @param y
- * The y-axis coordinate of the tile to retrieve.
+ * The y-axis coordinate of the tile.
*
* @return
- * The tile, or null if the coordinates are outside the bounds
- * of the component.
+ * The tile, or null if the coordinates are outside the bounds of the component.
*/
public Tile getTileAt(final int x, final int y) {
return tiles.getTileAt(x, y);
}
- /**
- * Retrieves a tile from the screen.
- *
- * @param position
- * The x/y-axis coordinates of the tile to retrieve.
- *
- * @return
- * The tile, or null if the coordinates are outside the bounds
- * of the component.
- */
- public Tile getTileAt(final Point position) {
- return tiles.getTileAt(position);
- }
-
/**
* Changes the bounding box origin.
*
@@ -131,14 +116,4 @@ public class Component {
public void setBoundingBoxOrigin(final int x, final int y) {
boundingBoxOrigin.setLocation(x, y);
}
-
- /**
- * Changes the bounding box origin.
- *
- * @param point
- * The new origin point.
- */
- public void setBoundingBoxOrigin(final Point point) {
- boundingBoxOrigin.setLocation(point);
- }
}
