Examples of Entity


Examples of com.griddynamics.java.benchmarks.model.Entity

                logger.info("created max objects (" + currentGr.getObjectsCount()
                        + ") for group " + currentGr.getId());
                //continue;         //todo: we just return group to the queue
            } else {
                logger.debug("count of created objs is " + currentGr.getObjectsCount());
                Entity entity = new Entity();
                entity.setObjectSizeKb(currentGr.getObjectSize());
                currentGr.getStorage().push(ticker.getTicks(), entity);
                currentGr.incObjectsCount();
                if (!ticks.offer(1))
                    throw new UnsupportedOperationException("can't insert into tick queue...");
            }
View Full Code Here

Examples of com.isteinvids.untrusted.level.Entity

            g.fillRect(offx + (ents.getKey().x * blocksizex), offy + (ents.getKey().y * blocksizey), blocksizex, blocksizey);
//            g.drawString(Character.toString(tile.c), );
        }

        for (Map.Entry<String, Entity> ents : levelManager.entities.entrySet()) {
            Entity entity = ents.getValue();
            g.setColor(Color.BLACK);
            g.drawString(Character.toString(entity.symbol), offx + (entity.position.x * blocksizex) + 1, offy + (entity.position.y * blocksizey) + 1);
            g.setColor(new Color(entity.colour));
            g.drawString(Character.toString(entity.symbol), offx + (entity.position.x * blocksizex), offy + (entity.position.y * blocksizey));
        }
View Full Code Here

Examples of com.jdroid.javaweb.domain.Entity

  @Override
  protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
      throws ServletException, IOException {
   
    AbstractSecurityContext<?> securityContext = Application.get().getSecurityContext();
    Entity user = securityContext != null ? securityContext.getUser() : null;
    if (user != null) {
      // Add the user id to the mapped diagnostic context. May be shown using %X{userId} in the layout pattern.
      MDC.put(USER_ID, user.getId());
    }
   
    // Add the session id to the mapped diagnostic context. May be shown using %X{sessionId} in the layout pattern.
    MDC.put(SESSION_ID, request.getSession().getId());
   
View Full Code Here

Examples of com.l2client.controller.entity.Entity

      Box b = new Box(.5f,1f,.5f);
      Geometry walker = new Geometry("wakler", b);
      Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
        mat.setColor("Color", ColorRGBA.Red);
        walker.setMaterial(mat);
        Entity e = placeObject(new Vector3f(257f,2.2f,0f), new Vector3f(389f,0f,0f));
        if(e != null){
          e.attachChild(walker);
          rootNode.attachChild(e);
          this.walker = e;
        }

     
View Full Code Here

Examples of com.language.constructs.Entity

    setTitle("Entity");
    setResizable(false);
    setModal(true);
    setBounds(100, 100, 333, 515);
    entity_action = new EntityAction(this);
    entity = new Entity();
    getContentPane().setLayout(new BorderLayout());
    contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
    getContentPane().add(contentPanel, BorderLayout.CENTER);
    contentPanel.setLayout(null);
   
View Full Code Here

Examples of com.luxoft.dnepr.courses.regular.unit5.model.Entity

    }

    @Override
    public boolean delete(long id) {
        Map<Long, Entity> storage = EntityStorage.getEntities();
        Entity entity = storage.get(id);
        if (entity == null) {
            return false;
        }
        return storage.remove(id) != null;
    }
View Full Code Here

Examples of com.magnetica.shared.data.Entity

        b.append(statistics.urlsRetrieved);
        b.append("; #bytes=");
        b.append(statistics.bytesLoaded);

        // data completeness
        Entity entity = result.getEntity();
        b.append("\n# Result quality: ");
        if (entity != null) {
          b.append("data completeness=");
          b.append(entity.getDataCompleteness(requiredDataElements));
          b.append("; #entities=");
          b.append(entity.getAll(true, true).size());
        } else {
          b.append("root entity == null");
        }

        // timing
View Full Code Here

Examples of com.mojang.escape.entities.Entity

    for (int zb = zCenter - r; zb <= zCenter + r; zb++) {
      for (int xb = xCenter - r; xb <= xCenter + r; xb++) {
        Block c = level.getBlock(xb, zb);

        for (int j = 0; j < c.entities.size(); j++) {
          Entity e = c.entities.get(j);
          for (int i = 0; i < e.sprites.size(); i++) {
            Sprite sprite = e.sprites.get(i);
            renderSprite(e.x + sprite.x, 0 - sprite.y, e.z + sprite.z, sprite.tex, sprite.col);
          }
        }
View Full Code Here

Examples of com.mojang.ld22.entity.Entity

    for (int y = yo - r; y <= h + yo + r; y++) {
      for (int x = xo - r; x <= w + xo + r; x++) {
        if (x < 0 || y < 0 || x >= this.w || y >= this.h) continue;
        List<Entity> entities = entitiesInTiles[x + y * this.w];
        for (int i = 0; i < entities.size(); i++) {
          Entity e = entities.get(i);
          // e.render(screen);
          int lr = e.getLightRadius();
          if (lr > 0) screen.renderLight(e.x - 1, e.y - 4, lr * 8);
        }
        int lr = getTile(x, y).getLightRadius(this, x, y);
        if (lr > 0) screen.renderLight(x * 16 + 8, y * 16 + 8, lr * 8);
      }
 
View Full Code Here

Examples of com.mojang.minecraft.Entity

   public Entity attackTarget = null;


   public void tick(Level var1, Mob var2) {
      ++this.noActionTime;
      Entity var3;
      if(this.noActionTime > 600 && this.random.nextInt(800) == 0 && (var3 = var1.getPlayer()) != null) {
         float var4 = var3.x - var2.x;
         float var5 = var3.y - var2.y;
         float var6 = var3.z - var2.z;
         if(var4 * var4 + var5 * var5 + var6 * var6 < 1024.0F) {
            this.noActionTime = 0;
         } else {
            var2.remove();
         }
      }

      this.level = var1;
      this.mob = var2;
      if(this.attackDelay > 0) {
         --this.attackDelay;
      }

      if(var2.health <= 0) {
         this.jumping = false;
         this.xxa = 0.0F;
         this.yya = 0.0F;
         this.yRotA = 0.0F;
      } else {
         this.update();
      }

      boolean var7 = var2.isInWater();
      boolean var9 = var2.isInLava();
      if(this.jumping) {
         if(var7) {
            var2.yd += 0.04F;
         } else if(var9) {
            var2.yd += 0.04F;
         } else if(var2.onGround) {
            this.jumpFromGround();
         }
      }

      this.xxa *= 0.98F;
      this.yya *= 0.98F;
      this.yRotA *= 0.9F;
      var2.travel(this.xxa, this.yya);
      List var11;
      if((var11 = var1.findEntities(var2, var2.bb.grow(0.2F, 0.0F, 0.2F))) != null && var11.size() > 0) {
         for(int var8 = 0; var8 < var11.size(); ++var8) {
            Entity var10;
            if((var10 = (Entity)var11.get(var8)).isPushable()) {
               var10.push(var2);
            }
         }
      }

   }
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.