Removed unused pathfinding statistic variables.
This commit is contained in:
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
@@ -47,10 +47,6 @@ public class NodeBuffer
|
|||||||
private int _gty;
|
private int _gty;
|
||||||
private int _gtz;
|
private int _gtz;
|
||||||
|
|
||||||
// Pathfinding statistics.
|
|
||||||
private long _timeStamp;
|
|
||||||
private long _lastElapsedTime;
|
|
||||||
|
|
||||||
private Node _current;
|
private Node _current;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -83,9 +79,6 @@ public class NodeBuffer
|
|||||||
*/
|
*/
|
||||||
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
public List<Location> findPath(int gox, int goy, int goz, int gtx, int gty, int gtz)
|
||||||
{
|
{
|
||||||
// Set start timestamp.
|
|
||||||
_timeStamp = System.currentTimeMillis();
|
|
||||||
|
|
||||||
// Set target coordinates.
|
// Set target coordinates.
|
||||||
_gtx = gtx;
|
_gtx = gtx;
|
||||||
_gty = gty;
|
_gty = gty;
|
||||||
@@ -182,15 +175,9 @@ public class NodeBuffer
|
|||||||
|
|
||||||
_current = null;
|
_current = null;
|
||||||
|
|
||||||
_lastElapsedTime = System.currentTimeMillis() - _timeStamp;
|
|
||||||
_lock.unlock();
|
_lock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getElapsedTime()
|
|
||||||
{
|
|
||||||
return _lastElapsedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
* Expand the current {@link Node} by exploring its neighbors (axially and diagonally).
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user