Examples of Die


Examples of com.google.gerrit.pgm.util.Die

    }
  }

  private void doGet() {
    if (!lib_dir.exists() && !lib_dir.mkdirs()) {
      throw new Die("Cannot create " + lib_dir);
    }

    try {
      doGetByHttp();
      verifyFileChecksum();
    } catch (IOException err) {
      dst.delete();

      if (ui.isBatch()) {
        throw new Die("error: Cannot get " + jarUrl, err);
      }

      System.err.println();
      System.err.println();
      System.err.println("error: " + err.getMessage());
      System.err.println("Please download:");
      System.err.println();
      System.err.println("  " + jarUrl);
      System.err.println();
      System.err.println("and save as:");
      System.err.println();
      System.err.println("  " + dst.getAbsolutePath());
      System.err.println();
      System.err.flush();

      ui.waitForUser();

      if (dst.exists()) {
        verifyFileChecksum();

      } else if (!ui.yesno(!required, "Continue without this library")) {
        throw new Die("aborted by user");
      }
    }

    reload.reload();
  }
View Full Code Here

Examples of com.google.gerrit.pgm.util.Die

          System.err.println("Checksum " + dst.getName() + " OK");
          System.err.flush();

        } else if (ui.isBatch()) {
          dst.delete();
          throw new Die(dst + " SHA-1 checksum does not match");

        } else if (!ui.yesno(null /* force an answer */,
            "error: SHA-1 checksum does not match\n" + "Use %s anyway",//
            dst.getName())) {
          dst.delete();
          throw new Die("aborted by user");
        }

      } catch (IOException checksumError) {
        dst.delete();
        throw new Die("cannot checksum " + dst, checksumError);

      } catch (NoSuchAlgorithmException checksumError) {
        dst.delete();
        throw new Die("cannot checksum " + dst, checksumError);
      }
    }
  }
View Full Code Here

Examples of com.google.gerrit.pgm.util.Die

import java.util.Arrays;

/** Utility functions to help initialize a site. */
class InitUtil {
  static Die die(String why) {
    return new Die(why);
  }
View Full Code Here

Examples of com.google.gerrit.pgm.util.Die

  static Die die(String why) {
    return new Die(why);
  }

  static Die die(String why, Throwable cause) {
    return new Die(why, cause);
  }
View Full Code Here

Examples of com.l2client.network.game.ServerPackets.Die

      }
    }
    case STATE_INGAME: {
      switch (cde & 0xFF) {
      case 0x00:
        pa = new Die();
        break;
      case 0x01:
        pa = new Revive();
        break;
      case 0x05:
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.Die

      sendPacket(new PledgeShowMemberListAll(activeChar.getClan(), activeChar));
      sendPacket(new PledgeStatusChanged(activeChar.getClan()));
    }

    if (activeChar.isAlikeDead())
      sendPacket(new Die(activeChar)); // No broadcast needed since the player will already spawn dead to others

    if (Config.ALLOW_WATER)
      activeChar.checkWaterState();

    if (Hero.getInstance().getHeroes() != null && Hero.getInstance().getHeroes().containsKey(activeChar.getObjectId()))
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.Die

   * <BR>
   */
  protected void clientNotifyDead()
  {
    // Send a Server->Client packet Die to the actor and all L2PcInstance in its _knownPlayers
    Die msg = new Die(_actor);
    _actor.broadcastPacket(msg);
    msg = null;

    // Init AI
    setIntention(AI_INTENTION_IDLE);
View Full Code Here

Examples of game.dice.Die

   * @param y the y coord
   */
  public void hold(GameRoom room, int x, int y) {
    Point point = new Point(x, y);
    for (int i = 0; i < room.getDice().getDice().size(); i++) {
      Die tempDie = room.getDice().getDice().get(i);
      if (tempDie.getDieFixture().contains(point)) {
        if (!room.getDice().getSavedDice().contains(tempDie)) {
          room.getDice().addToSavedDice(tempDie);
          tempDie.setDieFixture(new Point(
              GameplayFrame.DIE_SAVE_AREA_WIDTH
                  + (Die.DIE_DIMENSION + 5) * i,
              GameplayFrame.DIE_SAVE_AREA_HEIGHT));
          return;
        } else if (room.getDice().getSavedDice().contains(tempDie)) {
          room.getDice().removeFromSavedDice(tempDie);
          tempDie.calculateNewFixtureLocation();
          return;
        }
      }
    }
  }
View Full Code Here

Examples of l2p.gameserver.serverpackets.Die

  {
    super.onSpawn();
    setCurrentHp(0, false);
    setDead(true);
    broadcastStatusUpdate();
    broadcastPacket(new Die(this));
    setWalking();
  }
View Full Code Here

Examples of l2p.gameserver.serverpackets.Die

    if(actor != null)
    {
      actor.abortAttack(true, true);
      actor.abortCast(true);
      actor.stopMove();
      actor.broadcastPacket(new Die(actor));
    }
    setIntention(CtrlIntention.AI_INTENTION_IDLE);
  }
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.