public void updatePath() {
map.pathfindingGoalX = goalX;
map.pathfindingGoalY = goalY;
AStarPathFinder pathFinder = new AStarPathFinder((TileBasedMap) map, 100, Detonator.INSTANCE.diagonalMovementAllowed);
//Log.info("mapCoords.getIntX():"+mapCoords.getIntX()+"; mapCoords.getIntY()"+ mapCoords.getIntY() +"; goalX:"+goalX +"; goalY:"+ goalY);
path = pathFinder.findPath(null, mapCoords.getIntX(), mapCoords.getIntY(),
goalX, goalY);
//Log.warn("Path size:"+path.getLength());
}
}