Examples of PlaneType


Examples of com.flansmod.common.driveables.PlaneType

    }

    public void render(EntityPlane entityPlane, double d, double d1, double d2, float f, float f1)
    {
      bindEntityTexture(entityPlane);
      PlaneType type = entityPlane.getPlaneType();
        GL11.glPushMatrix();
        GL11.glTranslatef((float)d, (float)d1, (float)d2);     
        float dYaw = (entityPlane.axes.getYaw() - entityPlane.prevRotationYaw);
        for(; dYaw > 180F; dYaw -= 360F) {}
        for(; dYaw <= -180F; dYaw += 360F) {}
View Full Code Here

Examples of com.flansmod.common.driveables.PlaneType

  public void renderItem(ItemRenderType type, ItemStack item, Object... data)
  {
    GL11.glPushMatrix();
    if(item != null && item.getItem() instanceof ItemPlane)
    {
      PlaneType planeType = ((ItemPlane)item.getItem()).type;
      if(planeType.model != null)
      {
        float scale = 0.5F;
        switch(type)
        {
View Full Code Here

Examples of com.flansmod.common.driveables.PlaneType

    renderPart(hudModel);
  }
 
    public void render(float f5, EntityPlane plane, float f)
    {
      PlaneType type = plane.getPlaneType();
    //Rotating the propeller
    float angle = plane.propAngle;
    for(Propeller propeller : plane.getPlaneType().propellers)
    {
      if(plane.isPartIntact(propeller.planePart) && propellerModels.length > propeller.ID)
View Full Code Here

Examples of com.flansmod.common.driveables.PlaneType

   

    /** Renders helicopter rotor number i. */
  public void renderRotor(EntityPlane plane, float f5, int i)
  {
    PlaneType type = plane.getPlaneType();
    //If its not covered by the plane type heli propellers, render it. Otherwise, see if the part is intact
    if(i >= type.heliPropellers.size() || plane.isPartIntact(type.heliPropellers.get(i).planePart))
    {
      for(int j = 0; j < heliMainRotorModels[i].length; j++)
      {
View Full Code Here

Examples of com.flansmod.common.driveables.PlaneType

  }
   
  /** Renders helicopter tail rotor number i. */
  public void renderTailRotor(EntityPlane plane, float f5, int i)
  {
    PlaneType type = plane.getPlaneType();
    //If its not covered by the plane type heli propellers, render it. Otherwise, see if the part is intact
    if(i >= type.heliTailPropellers.size() || plane.isPartIntact(type.heliTailPropellers.get(i).planePart))
    {
      for(int j = 0; j < heliTailRotorModels[i].length; j++)
      {
View Full Code Here

Examples of se.plushogskolan.jetbroker.plane.domain.PlaneType

    EditPlaneTypeBean bean = new EditPlaneTypeBean();
    boolean isNew = id <= 0;

    if (isNew) {
      PlaneType planeType = new PlaneType();
      bean.setPlaneType(planeType);
    } else {
      PlaneType planeType = getPlaneService().getPlaneType(id);
      bean.setPlaneType(planeType);
    }

    ModelAndView mav = new ModelAndView("editPlaneType");
    mav.addObject("editPlaneTypeBean", bean);
View Full Code Here

Examples of se.plushogskolan.jetbroker.plane.domain.PlaneType

      ModelAndView mav = new ModelAndView("editPlaneType");
      mav.addObject("editPlaneTypeBean", bean);
      return mav;
    }

    PlaneType planeType = bean.getPlaneType();

    if (planeType.getId() > 0) {
      /**
       * Copy the updated values to a new PlaneType object taken directly
       * from the database
       */
      PlaneType dbPlaneType = getPlaneService().getPlaneType(bean.getPlaneType().getId());
      copyPlaneTypeValues(planeType, dbPlaneType);
      getPlaneService().updatePlaneType(dbPlaneType);
    } else {
      getPlaneService().createPlaneType(planeType);
    }
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.