Examples of Block


Examples of org.vorbis.jcraft.jorbis.Block

        oggPage_ = new Page();
        oggPacket_ = new Packet();
        vorbisInfo = new Info();
        vorbisComment = new Comment();
        vorbisDspState = new DspState();
        vorbisBlock = new Block(vorbisDspState);
        buffer = null;
        bytes = 0;
        oggSyncState_.init();
    }
View Full Code Here

Examples of ponkOut.logic.Block

    new GameBall(new Vector2f(9.0f, 9.0f), 0.5f, goManager);

    for (int i = -5; i <= 4; ++i)
      for (int j = -5; j <= 4 && i + j <= 6 && (i + j <= 5 || i == 4 || j == 4); ++j)
        new Block(new Vector2f(5.0f + i, 5.0f + j), 1.0f, 1.0f, goManager);
  }
View Full Code Here

Examples of pr.battlebots.blocks.Block

    public final Block makeBlock(BlockType t, Vec p) {
        if (isOccupied(p)) {
            return null;
        }
        return new Block(t, p, this);
    }
View Full Code Here

Examples of rakama.worldtools.data.Block

        }
    }
   
    public static void renderColumn(BlockCanvas canvas, int x, int z, int height, int maxY)
    {
        Block block = getBlock(height, maxY);       
        canvas.setBlock(x, height, z, block);

        Block fill = getFill(block)
        for(int y=0; y<height; y++)
            canvas.setBlock(x, y, z, fill);
       
        double waterLevel = getWaterLevel(maxY);       
        for(int y=height; y<waterLevel; y++)
View Full Code Here

Examples of res.elements.Block

        Common.info(7,"level.init () fine");
    }
    int i;
    public void addBlock(String type,float x,float y)
    {
        Block b=new Block();
        b.setPosition(x/2,y);
        b.setBoxShape(0.5f,1.0f);
        if(type=="x")
        {
            //b.setSize(0.5f,1.1f);
            b.setStaticSprite("res/elements/block/blockm.png");
            //b.getCurrentSpriteSet().get(0).offsety = -0.1f;
            addElement(b);
        }
        if(type=="y")
        {
            //b.setSize(0.5f,1.1f);
            b.setStaticSprite("res/elements/block/blockm.png");
            //b.getCurrentSpriteSet().get(0).offsety = -0.1f;
            b.bodydef.type=BodyType.DYNAMIC;
            //addElement(b);
        }
        if(type=="b")
        {
            b.setBoxShape(0.5f,0.5f);
            b.setStaticSprite("res/elements/boxino.png");
            //b.getCurrentSpriteSet().get(0).offsety = -0.1f;
            addElement(b);
        }
        if(type=="S")
        {
            ElementSpawnPoint s = new ElementSpawnPoint();
            s.setPosition(x/2,y);
            addElement(s);
        }
        if(type=="[")
        {
            //b.setSize(0.3f,1.1f);
            b.setStaticSprite("res/elements/block/blockl.png");
            //  b.getCurrentSpriteSet().get(0).offsety = -0.1f;
            //b.friction=0;
            addElement(b);
        }
        if(type=="]")
        {
            //b.setSize(0.3f,1.1f);
            //  b.friction=0;
            b.setStaticSprite("res/elements/block/blockr.png");
            //    b.getCurrentSpriteSet().get(0).offsety = -0.1f;
            addElement(b);
        }
        if(type=="|")
        {
            //  b.friction=0;
            //b.setSize(0.25f,1.1f);
            b.setStaticSprite("res/elements/block/blockcr.png");
            //  b.getCurrentSpriteSet().get(0).offsety = -0.1f;
            addElement(b);
        }
        if(type=="A")
        {
            //b.setSize(0.25f,1.1f);
            b.setStaticSprite("res/elements/block/blockctl.png");
            //  b.getCurrentSpriteSet().get(0).offsety = -0.1f;
            addElement(b);
        }
        if(type=="B")
        {
            //b.setSize(0.25f,1.1f);
            b.setStaticSprite("res/elements/block/blockctr.png");
            //s    b.getCurrentSpriteSet().get(0).offsety = -0.1f;
            addElement(b);
        }
        if(type=="C")
        {
            //b.setSize(0.25f,1.1f);
            b.setStaticSprite("res/elements/block/blockcbr.png");
            //b.getCurrentSpriteSet().get(0).offsety = -0.1f;
            addElement(b);
        }
        if(type=="D")
        {
            //b.setSize(0.25f,1.1f);
            b.setStaticSprite("res/elements/block/blockcbl.png");
            //b.getCurrentSpriteSet().get(0).offsety = -0.1f;
            addElement(b);
        }

        if(type=="a")
        {
            //b.setSize(0.25f,1.1f);
            Ammo a = new Ammo();
            a.setStaticSprite("res/elements/gun.png");
            a.setPosition(x/2,y);
            //  a.friction=0;
            //b.getCurrentSpriteSet().get(0).offsety = -0.1f;
            addElement(a);
        }
        if(type=="h")
        {
            Health a = new Health();
            a.setStaticSprite("res/elements/h.png");
            a.setPosition(x/2,y);
            //  a.friction=0;
            //b.getCurrentSpriteSet().get(0).offsety = -0.1f;
            addElement(a);
        }

        if(type=="^")
        {
            Thorn a = new Thorn();
            a.setStaticSprite("res/elements/triangle.png");

            a.setPosition(x/2,y);
            //  a.friction=0;
            //b.getCurrentSpriteSet().get(0).offsety = -0.1f;
            addElement(a);
        }
        if(type=="~")
        {
            Platform a = new Platform();
            a.setStaticSprite("res/elements/elevator.png");
            a.getCurrentSpriteSet().get(0).offsety = -0.08f;
            a.setPosition(x/2,y);
            a.setBoxShape(1.5f,0.2f);

            a.centralPosition = new Vec2(x/2,y);
            //a.friction=0;
            //b.getCurrentSpriteSet().get(0).offsety = -0.1f;
            addElement(a);
        }
        b.getCurrentSpriteSet().get(0).offsety=-0.2f;


        //i++;
        //System.out.println("i:"+i+" "+type);
    }
View Full Code Here

Examples of rocks.xmpp.extensions.blocking.model.Block

        xmppSession.addIQListener(new IQListener() {
            @Override
            public void handle(IQEvent e) {
                IQ iq = e.getIQ();
                if (e.isIncoming() && !e.isConsumed() && iq.getType() == IQ.Type.SET && (iq.getFrom() == null || iq.getFrom().equals(xmppSession.getConnectedResource().asBareJid()))) {
                    Block block = iq.getExtension(Block.class);
                    if (block != null) {
                        List<Jid> pushedContacts = new ArrayList<>();
                        synchronized (blockedContacts) {
                            for (Jid item : block.getItems()) {
                                blockedContacts.add(item);
                                pushedContacts.add(item);
                            }
                        }
                        xmppSession.send(iq.createResult());
View Full Code Here

Examples of ru.yandex.qatools.htmlelements.annotations.Block

        }

        Class<?> fieldClass = getField().getType();
        while (fieldClass != Object.class) {
            if (fieldClass.isAnnotationPresent(Block.class)) {
                Block block = fieldClass.getAnnotation(Block.class);
                FindBy findBy = block.value();
                return buildByFromFindBy(findBy);
            }
            if (fieldClass.isAnnotationPresent(FindBy.class)) {
                return buildByFromFindBy(fieldClass.getAnnotation(FindBy.class));
            }
View Full Code Here

Examples of se.llbit.chunky.world.Block

        break;
      }

      double pSpecular = 0;

      Block currentBlock = ray.getCurrentBlock();
      Block prevBlock = ray.getPrevBlock();

      if (!scene.stillWater && ray.n.y != 0 &&
          ((currentBlock == Block.WATER && prevBlock == Block.AIR) ||
          (currentBlock == Block.AIR && prevBlock == Block.WATER))) {
View Full Code Here

Examples of simpleserver.config.xml.Block

  }

  @Override
  void convert(Attributes attributes, Stack<PermissionContainer> stack) throws SAXException {
    PermissionContainer container = stack.peek();
    Block block = new Block(attributes.getValue("id"));
    block.place = new Permission(attributes.getValue("allow"), attributes.getValue("disallow"));
    block.fullInit();

    container.blocks.add(block);
  }
View Full Code Here

Examples of soot.toolkits.graph.Block

    try{
      //System.out.println("##entered weakRegionDFS for region " + r);
      this.m_regions.get(new Integer(r)).add(v);
     
      DominatorNode parentOfV = this.m_dom.getParentOf(this.m_dom.getDode(v));
      Block u2 = (parentOfV == null) ? null : (Block)parentOfV.getGode();
     
      List children = this.m_pdom.getChildrenOf(this.m_pdom.getDode(v));
      for(int i = 0; i < children.size(); i++)
      {
        DominatorNode w = (DominatorNode)children.get(i);
        Block u1 = (Block)w.getGode();
 
        if(u2 != null && u1.equals(u2))
        {
          this.weakRegionDFS((Block)w.getGode(), r);     
        }
        else
        {
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.