Removed Extra Grids Based on API Change.

This commit is contained in:
AlgorithmX2
2014-02-04 10:11:29 -06:00
parent dc754b4989
commit aed1c9b82c
9 changed files with 52 additions and 44 deletions
+6 -5
View File
@@ -55,7 +55,7 @@ public class PathGridCache implements IPathingGrid
}
@Override
public void onUpdateTick(IGrid grid)
public void onUpdateTick()
{
if ( recalculateControllerNextTick )
{
@@ -95,8 +95,9 @@ public class PathGridCache implements IPathingGrid
closedList = new HashSet();
semiOpen = new HashSet();
// myGrid.getPivot().beginVisition( new AdHocChannelUpdater( 0 ) );
for (IGridNode node : grid.getMachines( TileController.class ))
// myGrid.getPivot().beginVisition( new AdHocChannelUpdater( 0 )
// );
for (IGridNode node : myGrid.getMachines( TileController.class ))
{
closedList.add( (IPathItem) node );
for (IGridConnection gcc : node.getConnections())
@@ -182,7 +183,7 @@ public class PathGridCache implements IPathingGrid
}
@Override
public void removeNode(IGrid grid, IGridNode gridNode, IGridHost machine)
public void removeNode(IGridNode gridNode, IGridHost machine)
{
if ( machine instanceof TileController )
{
@@ -197,7 +198,7 @@ public class PathGridCache implements IPathingGrid
}
@Override
public void addNode(IGrid grid, IGridNode gridNode, IGridHost machine)
public void addNode(IGridNode gridNode, IGridHost machine)
{
if ( machine instanceof TileController )
{