Examples of Entity


Examples of hibernateSwingApi.utils.Entity

    }
    instance.dispose();
  }

  private void deleteKategory() {
    Entity o = (Entity) cTablePanelKategoriListe.getSelectedObject();
    if (o == null) {
      Utils.showMessage("Silmek istediğiniz satırı seçiniz");
      return;
    }
    int selectedOption = JOptionPane.showOptionDialog(null,
View Full Code Here

Examples of info.archinnov.achilles.annotations.Entity

    public String inferKeyspaceName(Class<?> entityClass, Optional<String> currentKeyspaceNameO, NamingStrategy namingStrategy) {
        String keyspaceName = currentKeyspaceNameO.or("");
        if(isNoneBlank(keyspaceName)) return keyspaceName;

        Entity annotation = entityClass.getAnnotation(Entity.class);

        keyspaceName = applyNamingStrategy(annotation.keyspace(), namingStrategy);

        Validator.validateBeanMappingTrue(isNotBlank(keyspaceName),"No keyspace name found for entity '"+entityClass.getCanonicalName()+"'. Keyspace name is looked up using either the @Entity annotation or in configuration parameter");

        keyspaceName = validateSchemaName(keyspaceName);
        return keyspaceName;
View Full Code Here

Examples of it.marteEngine.entity.Entity

      if (speed.x > 0)
        this.faceRight = true;
      else
        this.faceRight = false;

      Entity player = collide(PLAYER, x, y - 1);
      if (player != null) {
        toRemove = true;
        ((PlatformerEntity) player).jump();
        FuzzyGameWorld.addPoints(100);
      }
View Full Code Here

Examples of it.timehero.entities.Entity

   * @param numAnimazioni
   * @throws SlickException
   */
  public Gigi() {
    try {
      entity = new Entity(29, 10, "data/grafica/hero3.gif", 25, 32, 0, 2,
          1, 3, 0, 3, 0, 2, 1, 3, 3, 5);
    } catch (SlickException e) {
      e.printStackTrace();
    }
    setID(Helper.GIGI);
View Full Code Here

Examples of it.timehero.example.slick.timehero.entities.Entity

    // brute force collisions, compare every entity against
    // every other entity. If any of them collide notify
    // both entities that the collision has occured
    for (int p=0;p<entities.size();p++) {
      for (int s=p+1;s<entities.size();s++) {
        Entity me = (Entity) entities.get(p);
        Entity him = (Entity) entities.get(s);
        if (me.collidesWith(him)) {
          me.collidedWith(him);
          him.collidedWith(me);
        }
      }
    }
     
        // draw the appropriate section of the tilemap based on the centre (hence the -(TANK_SIZE/2)) of
        // the player
        int playerTileX = (int) gigi.getX();
        int playerTileY = (int) gigi.getY();
        
        // caculate the offset of the player from the edge of the tile. As the player moves around this
        // varies and this tells us how far to offset the tile based rendering to give the smooth
        // motion of scrolling
        int playerTileOffsetX = (int) ((playerTileX - gigi.getX()) * mappa.getTileSize());
        int playerTileOffsetY = (int) ((playerTileY - gigi.getY()) * mappa.getTileSize());
        
        // render the section of the map that should be visible. Notice the -1 and +3 which renders
        // a little extra map around the edge of the screen to cope with tiles scrolling on and off
        // the screen
        mappa.render(playerTileOffsetX - (gigi.ENTITY_SPRITE_SIZE / 2), playerTileOffsetY - (gigi.ENTITY_SPRITE_SIZE / 2)
                   playerTileX - leftOffsetInTiles - 1
                   playerTileY - topOffsetInTiles - 1,
                   widthInTiles + 3, heightInTiles + 3);
        
        // draw entities relative to the player that must appear in the centre of the screen
        g.translate(400 - (int) (gigi.getX() * 32), 300 - (int) (gigi.getY() * 32));

        // elimino le entit� segnalate per la rimozione
        removeEntity();
       
        // disegno entit�
        for (int i = 0; i < entities.size(); i++) {
      Entity ent = entities.get(i);
      // l'eroe deve essere animato in modo diverso (in base all'input dell'utente)

      ent.draw(g);       

      /*
      if ( ent instanceof Gigi){
        ((Gigi)ent).draw(g);
      } else {
View Full Code Here

Examples of it.unimi.dsi.parser.Entity

    NAME2ELEMENT.put(element.name.toString(), element);
    return element;
  }

  static Entity newEntity(final String name, final char c) {
    final Entity entity = new Entity(name, c);
    NAME2ENTITY.put(entity.name.toString(), entity);
    return entity;
  }
View Full Code Here

Examples of javatest.game.entities.Entity

              out.writeInt(getIdFromObj(myGoal));
            }
          }

          // report proximity warning
          Entity proximityWarning = playerEntity
              .getProximityWarning();
          if (proximityWarning != null) {
            out.writeByte(Server.MSG_SERVER_PROXIMITY_WARNING);
            out.writeInt(getIdFromObj(proximityWarning));
          }
View Full Code Here

Examples of javax.persistence.Entity

  public Class<?> getCollectionClass() {
    return null;
  }
 
  public String getEntityName() {
    Entity annotation = klass.getAnnotation(Entity.class);
    if (annotation == null) {
      throw new UnsupportedOperationException("Cannot get Entity Name of non-entity type.");
    } else {
      if (annotation.name() != null && !annotation.name().isEmpty()) {
        return annotation.name();
      } else {
        return klass.getSimpleName();
      }
    }
  }
View Full Code Here

Examples of javax.swing.text.html.parser.Entity

    for (int ps = 0; ps < pu_sy.length; ps++)
      {
      for (int gp = 0; gp < gen_par.length; gp++)
        {
        Entity e = new Entity(null, 0, null);
        e.type = pu_sy [ ps ] | gen_par [ gp ];

        harness.check(e.isGeneral(), gen_par [ gp ] == DTDConstants.GENERAL);
        harness.check(e.isParameter(), gen_par [ gp ] == DTDConstants.PARAMETER);

        harness.check((e.type & DTDConstants.SYSTEM) != 0,
                      pu_sy [ ps ] == DTDConstants.SYSTEM
                     );
View Full Code Here

Examples of javax.ws.rs.client.Entity

    @Override
    public CouchHttpResponse createDatabase(String databaseName) {
        try {
            // Jersey does not allow for null entity on put.
            Entity entity = Entity.entity("", MediaType.WILDCARD_TYPE);

            WebTarget webTarget = newWebTarget(databaseName);
            Response response = webTarget.request(MediaType.APPLICATION_JSON_TYPE)
                .put(entity);
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.