Examples of moveForward()


Examples of com.clearnlp.component.state.TagState.moveForward()

      case FLAG_TRAIN    : processTrain(state, insts);    break;
      case FLAG_BOOTSTRAP: processBootstrap(state, insts)break;
      default            : processDecode(state);
      }
       
      state.moveForward();
    }
   
    return state;
  }
 
View Full Code Here

Examples of dwlab.shapes.sprites.Sprite.moveForward()

    ang = 1500 * Math.sin( 7 * time );
    for( Shape shape : layer.children ) {
      Sprite sprite = shape.toSprite();
      oldSprite.directTo( sprite );
      oldSprite.angle += perSecond( ang ) + Service.random( -45, 45 );
      sprite.moveForward();
      oldSprite = sprite;
    }

    if( save.wasPressed() ) layer.saveToFile( "sprites.lw" );
    if( load.wasPressed() ) layer = (Layer) Obj.loadFromFile( "sprites.lw" );
View Full Code Here

Examples of dwlab.shapes.sprites.Sprite.moveForward()

 
  @Override
  public void logic() {
    for( Shape shape : layer.children ) {
      Sprite sprite = shape.toSprite();
      sprite.moveForward();
      sprite.bounceInside( rectangle );
    }
  }
 
View Full Code Here

Examples of invaders101.entities.AlienEntity.moveForward()

        if (logicRequiredThisLoop) {
            AlienEntity.revertGroupDirection();
            for (BaseEntity entity : entities) {
                if (entity instanceof AlienEntity) {
                    AlienEntity alien = (AlienEntity) entity;
                    alien.moveForward();
                }
            }
            logicRequiredThisLoop = false;
        }
    }
View Full Code Here

Examples of logisticspipes.utils.tuples.LPPosition.moveForward()

  @Override
  public List<TileEntity> getConnections(TileEntity tile) {
    boolean onlyOnePipe = false;
    for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS) {
      LPPosition p = new LPPosition(tile);
      p.moveForward(direction);
      TileEntity canidate = p.getTileEntity(tile.getWorldObj());
      if(canidate instanceof LogisticsTileGenericPipe && MainProxy.checkPipesConnections(tile, canidate, direction)) {
        if(onlyOnePipe) {
          onlyOnePipe = false;
          break;
View Full Code Here

Examples of logisticspipes.utils.tuples.LPPosition.moveForward()

    for(TileEntity connected:connections) {
      if(!SimpleServiceLocator.enderIOProxy.isSendAndReceive(connected)) continue;
      LogisticsTileGenericPipe pipe = null;
      for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS) {
        LPPosition p = new LPPosition(connected);
        p.moveForward(direction);
        TileEntity canidate = p.getTileEntity(tile.getWorldObj());
        if(canidate instanceof LogisticsTileGenericPipe && MainProxy.checkPipesConnections(connected, canidate, direction)) {
          if(pipe != null) {
            pipe = null;
            break;
View Full Code Here

Examples of logisticspipes.utils.tuples.LPPosition.moveForward()

  @Override
  public List<TileEntity> getConnections(TileEntity tile) {
    boolean onlyOnePipe = false;
    for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS) {
      LPPosition p = new LPPosition(tile);
      p.moveForward(direction);
      TileEntity canidate = p.getTileEntity(tile.getWorldObj());
      if(canidate instanceof LogisticsTileGenericPipe && MainProxy.checkPipesConnections(tile, canidate, direction)) {
        if(onlyOnePipe) {
          onlyOnePipe = false;
          break;
View Full Code Here

Examples of logisticspipes.utils.tuples.LPPosition.moveForward()

    List<TileEntity> list = new ArrayList<TileEntity>();
    for(TileEntity connected:connections) {
      LogisticsTileGenericPipe pipe = null;
      for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS) {
        LPPosition p = new LPPosition(connected);
        p.moveForward(direction);
        TileEntity canidate = p.getTileEntity(tile.getWorldObj());
        if(canidate instanceof LogisticsTileGenericPipe && MainProxy.checkPipesConnections(connected, canidate, direction)) {
          if(pipe != null) {
            pipe = null;
            break;
View Full Code Here

Examples of logisticspipes.utils.tuples.LPPosition.moveForward()

      float fPos = item.getPosition() + item.getSpeed() * f;
     
      if(fPos < 0.5) {
        if(item.input == ForgeDirection.UNKNOWN) continue;
        if(!pipe.container.renderState.pipeConnectionMatrix.isConnected(item.input.getOpposite())) continue;
        pos.moveForward(item.input.getOpposite(), 0.5F - fPos);
      } else {
        if(item.output == ForgeDirection.UNKNOWN) continue;
        if(!pipe.container.renderState.pipeConnectionMatrix.isConnected(item.output)) continue;
        pos.moveForward(item.output, fPos - 0.5F);
      }
View Full Code Here

Examples of logisticspipes.utils.tuples.LPPosition.moveForward()

        if(!pipe.container.renderState.pipeConnectionMatrix.isConnected(item.input.getOpposite())) continue;
        pos.moveForward(item.input.getOpposite(), 0.5F - fPos);
      } else {
        if(item.output == ForgeDirection.UNKNOWN) continue;
        if(!pipe.container.renderState.pipeConnectionMatrix.isConnected(item.output)) continue;
        pos.moveForward(item.output, fPos - 0.5F);
      }
     
      if(item == null || item.getItemIdentifierStack() == null) continue;
      if(item.getContainer().xCoord != pipe.container.xCoord || item.getContainer().yCoord != pipe.container.yCoord || item.getContainer().zCoord != pipe.container.zCoord) continue;
      ItemStack itemstack = item.getItemIdentifierStack().makeNormalStack();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.