Package appeng.api.networking.pathing

Examples of appeng.api.networking.pathing.IPathingGrid


  public boolean isActive()
  {
    IGrid g = getGrid();
    if ( g != null )
    {
      IPathingGrid pg = g.getCache( IPathingGrid.class );
      IEnergyGrid eg = g.getCache( IEnergyGrid.class );
      return meetsChannelRequirements() && eg.isNetworkPowered() && !pg.isNetworkBooting();
    }
    return false;
  }
View Full Code Here


  public IPathingGrid getPath() throws GridAccessException
  {
    IGrid grid = getGrid();
    if ( grid == null )
      throw new GridAccessException();
    IPathingGrid pg = grid.getCache( IPathingGrid.class );
    if ( pg == null )
      throw new GridAccessException();
    return pg;
  }
View Full Code Here

          Grid g = node.getInternalGrid();
          IGridNode center = g.getPivot();
          outputMsg( player, "This Node: " + node.toString() );
          outputMsg( player, "Center Node: " + center.toString() );
         
          IPathingGrid pg = g.getCache( IPathingGrid.class );
          if ( pg.getControllerState() == ControllerState.CONTROLLER_ONLINE )
          {
            int length = 0;
           
            HashSet<IGridNode> next = new HashSet<IGridNode>();
            next.add( node );
View Full Code Here

        a.beginVisit( gp );
      }
    }

    // a connection was destroyed RE-PATH!!
    IPathingGrid p = sideA.getInternalGrid().getCache( IPathingGrid.class );
    p.repath();

    sideA.addConnection( this );
    sideB.addConnection( this );
  }
View Full Code Here

  @Override
  public void destroy()
  {
    // a connection was destroyed RE-PATH!!
    IPathingGrid p = sideA.getInternalGrid().getCache( IPathingGrid.class );
    p.repath();

    sideA.removeConnection( this );
    sideB.removeConnection( this );

    sideA.validateGrid();
View Full Code Here

TOP

Related Classes of appeng.api.networking.pathing.IPathingGrid

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.