Examples of Explosion


Examples of battleTank.Explosion

      String s = (String)arg1;
      System.out.println(s);
    }
    if (arg1 instanceof Point) {
      Point p = (Point)arg1;
      Explosion et = new Explosion(p, model.getMap());
      model.addExplosion(et);
     
    }
  }
View Full Code Here

Examples of battleTank.Explosion

        ProjectileRectangle rect = s.getRectangle();
        g.drawImage(rect.getImage(), rect.xCoord(), rect.yCoord(), null);
      }
    }
    for(int i = 0; i < model.getMap().getExplosions().size(); i++) {
      Explosion e = model.getMap().getExplosions().get(i);
      g.drawImage(e.getImage(), e.getLocation().col, e.getLocation().row, null);
    }
    if (won == true) {
      Font font = new Font("Times New Roman", Font.BOLD, 28);
      String jb = "Win!";
      AttributedString att = new AttributedString(jb);
View Full Code Here

Examples of com.palepail.TestGame.Model.Explosion

  public void putItem(Item item) {
    items.add(item);
  }

  public void putExplosion(float x, float y, String variation) {
    Explosion explosion = new Explosion(0f, 0, 1 * Configuration.gameScale, 1 * Configuration.gameScale,
        new Vector2(x, y), 1, variation);
    explosions.add(explosion);
  }
View Full Code Here

Examples of com.palepail.TestGame.Model.Explosion

    explosions.add(explosion);
  }

  public void putSecondaryExplosion(float x, float y, String variation) {

    Explosion explosion = new Explosion(0f, random.nextInt(9 * Configuration.gameScale),
        1.5f * Configuration.gameScale, .2f * Configuration.gameScale, new Vector2(x, y), .8f, variation);
    secondaryExplosions.add(explosion);

  }
View Full Code Here

Examples of com.tankz.systems.rendering.spatials.Explosion

    } else if (spatialFormFile.equalsIgnoreCase("mammothTank")) {
      return new MammothTank(world, e);
    } else if (spatialFormFile.equalsIgnoreCase("bullet")) {
      return new Bullet(world, e);
    } else if (spatialFormFile.equalsIgnoreCase("explosion")) {
      return new Explosion(world, e);
    } else if (spatialFormFile.equalsIgnoreCase("wall")) {
      return new Wall(world, e);
    }
    return null;
  }
View Full Code Here

Examples of models.animations.Explosion

            {
                informerEcouteurAttaqueTerminee();
                estTerminee = true;
   
                jeu.ajouterAnimation(
                        (new Explosion((int) xCentreBoule - DIAMETRE_BOULE,
                                (int) yCentreBoule - DIAMETRE_BOULE)));
   
                attaquerCibles();
               
                estTerminee = true;
View Full Code Here

Examples of net.minecraft.server.Explosion

  }

  @Override
  public void ignite(org.bukkit.World world, int x, int y, int z) {
    World worldhandle = CommonNMS.getNative(world);
    Explosion ex = new Explosion(worldhandle, null, x, y, z, (float) 4.0);
    BlockRef.ignite.invoke(handle, worldhandle, x, y, z, ex);
  }
View Full Code Here

Examples of net.minecraft.server.Explosion

  public static void damage(org.bukkit.entity.Entity entity, DamageCause cause, double damage) {
    DamageSource source;
    if (cause == DamageCause.BLOCK_EXPLOSION) {
      Location loc = entity.getLocation();
      World worldhandle = CommonNMS.getNative(loc.getWorld());
      Explosion ex = new Explosion(worldhandle, null, loc.getX(), loc.getY(), loc.getZ(), (float) 4.0);
      source = DamageSource.explosion(ex);
    } else if (cause == DamageCause.CONTACT) {
      source = DamageSource.CACTUS;
    } else if (cause == DamageCause.DROWNING) {
      source = DamageSource.DROWN;
View Full Code Here

Examples of net.minecraft.server.Explosion

  public static Object forThornsDamage(Entity damagedEntity) {
    return DamageSource.a(CommonNMS.getNative(damagedEntity));
  }

  public static Object forExplosion(Entity explodableEntity) {
    Explosion expl = null;
    if (explodableEntity != null) {
      expl = new Explosion(null, CommonNMS.getNative(explodableEntity), 0.0, 0.0, 0.0, 0.0f);
    }
    return DamageSource.explosion(expl);
  }
View Full Code Here

Examples of net.minecraft.world.Explosion

    }

    if ( AEConfig.instance.isFeatureEnabled( AEFeature.TinyTNTBlockDamage ) )
    {
      posY -= 0.25;
      Explosion ex = new Explosion( worldObj, this, posX, posY, posZ, 0.2f );

      for (int x = (int) (posX - 2); x <= posX + 2; x++)
      {
        for (int y = (int) (posY - 2); y <= posY + 2; y++)
        {
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.