Removed unused pathfinding statistic variables.

This commit is contained in:
MobiusDevelopment
2022-06-25 14:14:11 +00:00
parent 68f229e93c
commit f4f1b3aaf2
28 changed files with 0 additions and 364 deletions

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */

View File

@@ -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).
*/ */