Examples of Nature


Examples of games.stendhal.common.constants.Nature

   * @param width
   * @param height
   */
  private void drawStrike(final Graphics2D g2d, final RPEntity entity,
      final int x, final int y, final int width, final int height) {
    Nature damageType = entity.getShownDamageType();
   
    if (damageType != null) {     
      final Sprite sprite = bladeStrikeSprites.get(damageType).get(getState(entity))[frameBladeStrike];

      final int spriteWidth = sprite.getWidth();
View Full Code Here

Examples of games.stendhal.common.constants.Nature

   * @param width
   * @param height
   */
  private void drawDistanceAttack(final Graphics2D g2d, final RPEntity entity, final RPEntity target,
      final int x, final int y, final int width, final int height) {
    Nature nature = entity.getShownDamageType();

    int startX = x + width / 2;
    int startY = y + height / 2;
    int endX = (int) (32 * (target.getX() + target.getWidth() / 2));
    // Target at the upper edge of the occupied area.
View Full Code Here

Examples of games.stendhal.common.constants.Nature

    } else if (qName.equals("abilities")) {
      abilities = true;
    } else if (abilities && qName.equals("damage")) {
      damageType = Nature.parse(attrs.getValue("type"));
    } else if (abilities && qName.equals("susceptibility")) {
      Nature type = Nature.parse(attrs.getValue("type"));
      Double value = Double.valueOf(attrs.getValue("value"));
      susceptibilities.put(type, value);
    }
  }
View Full Code Here

Examples of games.stendhal.common.constants.Nature

public class AttackEvent extends Event<RPEntity> {
  private static final Logger logger = Logger.getLogger(AttackEvent.class);
 
  @Override
  public void execute() {
    Nature dtype;
    int idx = event.getInt("type");
    try {
      dtype = Nature.values()[idx];
    } catch (ArrayIndexOutOfBoundsException exc) {
      logger.warn("Unknown damage type: " + idx);
View Full Code Here

Examples of models.Nature

    List<Nature> q =  Nature.find.all();
    return ok(index.render(q));
  }

  public static Result create() {
    Nature existingNature = new Nature();
    return ok(create.render(natureForm.fill(existingNature)));
  }
View Full Code Here

Examples of models.Nature

    Nature existingNature = new Nature();
    return ok(create.render(natureForm.fill(existingNature)));
  }

  public static Result edit(Integer id) {
    Nature existingNature = Nature.find.byId(id);
        return ok(edit.render(natureForm.fill(existingNature)));
  }
View Full Code Here

Examples of models.Nature

    Nature existingNature = Nature.find.byId(id);
        return ok(edit.render(natureForm.fill(existingNature)));
  }

  public static Result delete(Integer id) {
    Nature existingNature = Nature.find.byId(id);
    existingNature.delete();
    List<Nature> q =  Nature.find.all();
    return redirect("/nature");
  }
View Full Code Here

Examples of models.Nature

    Form<Nature> filledForm = natureForm.bindFromRequest();
       
        if(filledForm.hasErrors()) {
            return badRequest(edit.render(filledForm));
        } else {
            Nature updated = filledForm.get();
            updated.ID = id;
            updated.update();
            flash("success", "Nature mise à jours");
            return ok(edit.render(natureForm.fill(updated)));
        }
  }
View Full Code Here

Examples of models.Nature

  public static Result insert() {
    Form<Nature> filledForm = natureForm.bindFromRequest();
        if(filledForm.hasErrors()) {
            return ok(create.render(filledForm));
        } else {
            Nature created = filledForm.get();
            created.save();
            flash("success", "Nature ajoutée");
            return redirect("/nature");
        }
    }
View Full Code Here

Examples of org.objectstyle.wolips.core.resources.internal.build.Nature

    return false;
  }

  public IResourceType createAdapter(Object adaptableObject, Class adapterType) {
    IProject project = (IProject) adaptableObject;
    Nature nature = (Nature) WOLipsNatureUtils.getNature(project);
    if (nature == null) {
      return null;
    } else if (adapterType == ProjectAdapter.class) {
      return new ProjectAdapter(project, nature.isFramework());
    } else if (adapterType == IProjectPatternsets.class) {
      ProjectPatternsets projectPatternSets = _projectPatternSets.get(adaptableObject);
      if (projectPatternSets == null) {
        projectPatternSets = new ProjectPatternsets(project);
        _projectPatternSets.put(adaptableObject, projectPatternSets);
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.