A* path finding, room & corridor generation, pathfinding mouse control

This commit is contained in:
Ondřej Hruška
2014-04-24 21:08:54 +02:00
parent 69f55dcc12
commit eef373eb24
48 changed files with 881 additions and 401 deletions
@@ -59,11 +59,11 @@ public class TiledRect extends RectProxy {
public Rect tile(int x, int y)
{
if (x >= tilesX || x < 0) {
throw new IndexOutOfBoundsException("X coordinate out fo range: "+x);
throw new IndexOutOfBoundsException("X coordinate out fo range: " + x);
}
if (y >= tilesY || y < 0) {
throw new IndexOutOfBoundsException("Y coordinate out of range: "+y);
throw new IndexOutOfBoundsException("Y coordinate out of range: " + y);
}
return aTile.move(perCol.mul(x), perRow.mul(y));