Examples of Dice


Examples of com.killruana.zcraft.random.Dice

        PluginDescriptionFile pdfFile = this.getDescription();
        System.out.println(pdfFile.getName() + " version " + pdfFile.getVersion() + " is enabled!");
        setupPermissions(); // fonction pour les permissions

        // Module Random
        getCommand("dice").setExecutor(new Dice(this));
        getCommand("random").setExecutor(new Random(this));

        // Module Administration
        getCommand("inv").setExecutor(new InvPluginCommand(this));
        getCommand("hax").setExecutor(new HaxPluginCommand(this));
View Full Code Here

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

      {
        activeChar.sendPacket(new SystemMessage(SystemMessageId.YOU_MAY_NOT_THROW_THE_DICE_AT_THIS_TIME_TRY_AGAIN_LATER));
        return;
      }

      Dice d = new Dice(activeChar.getObjectId(), item.getItemId(), number, activeChar.getX() - 30, activeChar.getY() - 30, activeChar.getZ());
      Broadcast.toSelfAndKnownPlayers(activeChar, d);
      d = null;

      SystemMessage sm = new SystemMessage(SystemMessageId.S1_ROLLED_S2);
      sm.addString(activeChar.getName());
View Full Code Here

Examples of game.dice.Dice

    if(inObj == null)client.getConnection().broadcast(CommandList.GOTNULLCMD);
   
    switch(client.getState()){
    case INITIATING_CONNECTION:
      if(inObj.getClass().getSimpleName().equals("Dice")){
        Dice initDice = (Dice)inObj;
        client.setDice(initDice);
      }
      if(inObj.getClass().getSimpleName().equals("GameSheet")){
        GameSheet initSheet = (GameSheet)inObj;
        client.setGameSheet(initSheet);
      }
      if(inObj.getClass().getSimpleName().equals("Leaderboard")){
        Leaderboard initBoard = (Leaderboard)inObj;
        client.setLeaderboard(initBoard);
      }
      if(inObj.getClass().getSimpleName().equals("PlayerList")){
        PlayerList refPlayers = (PlayerList)inObj;
        client.getJoinedList().refreshPlayerList(refPlayers);
        client.getCurrentFrame().updateGUIForeign();
      }
      if(inObj.getClass().getSimpleName().equals("Message")){
        Message inboundMsg = (Message)inObj;
        processMessageInput(inboundMsg);
      }
      //client.getConnection().sendRcvdConfirmation(inObj);    //TEMPORARILY DISABLED
      break;
    case GAME_IN_PROGRESS:
      if(inObj.getClass().getSimpleName().equals("Dice")){
        Dice refreshedDice = (Dice)inObj;
        client.getDice().refershDice(refreshedDice);
        client.getCurrentFrame().updateGUIForeign();
        //System.out.println("Hetket�ringute (" + client.getDice().getDiceValues() + ") omanik: " + client.getDice().getCurOwner());
      }
      if(inObj.getClass().getSimpleName().equals("GameSheet")){
View Full Code Here

Examples of game.dice.Dice

          fromClient = netIn.readObject();
        } catch (ClassNotFoundException e) {
          e.printStackTrace();
        }
        if(fromClient.getClass().getSimpleName().equals("Dice")){
        Dice diceFromClient = (Dice) fromClient;
        System.out.println(diceFromClient.toString());
        outQueue.addObject(diceFromClient);
        }else if(fromClient.getClass().getSimpleName().equals("GameSheet")){
          GameSheet gamesheetFromClient = (GameSheet)fromClient;
          outQueue.addObject(gamesheetFromClient);
        }
View Full Code Here

Examples of game.dice.Dice

  /**
   * Resets the room variables.
   */
  public void resetRoom() {
    gameSheet = new GameSheet(size);
    dice = new Dice(5);
    dice.generateNeutralDice();
    clients = new ArrayList<ClientHandler>();
    inProgress = false;
  }
View Full Code Here

Examples of games.stendhal.server.entity.item.Dice

      ConversationStates.ATTENDING,
      "OK, here are the dice. Just throw them when you're ready. Good luck!",
      new ChatAction() {
        public void fire(final Player player, final Sentence sentence, final EventRaiser npc) {
          player.drop("money", STAKE);
          final Dice dice = (Dice) SingletonRepository.getEntityManager()
              .getItem("dice");
          dice.setCroupierNPC((CroupierNPC) npc.getEntity());
          player.equipOrPutOnGround(dice);
        }
      });
   
    ricardo.add(ConversationStates.QUESTION_1,
View Full Code Here

Examples of l2p.gameserver.serverpackets.Dice

      if (number == 0)
      {
        player.sendPacket(Msg.YOU_MAY_NOT_THROW_THE_DICE_AT_THIS_TIMETRY_AGAIN_LATER);
        return;
      }
      player.broadcastPacket(new Dice(player.getObjectId(), itemId, number, player.getX() - 30, player.getY() - 30, player.getZ()), new SystemMessage(
          SystemMessage.S1_HAS_ROLLED_S2).addString(player.getName()).addNumber(number));
    }
  }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.Dice

    if (number == 0)
    {
      player.sendPacket(Msg.YOU_MAY_NOT_THROW_THE_DICE_AT_THIS_TIMETRY_AGAIN_LATER);
      return false;
    }
    player.broadcastPacket(new Dice(player.getObjectId(), itemId, number, player.getX() - 30, player.getY() - 30, player.getZ()), new SystemMessage(SystemMessage.S1_HAS_ROLLED_S2).addString(player.getName()).addNumber(number));
    return true;
  }
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.Dice

      {
        activeChar.sendPacket(new SystemMessage(SystemMessageId.YOU_MAY_NOT_THROW_THE_DICE_AT_THIS_TIME_TRY_AGAIN_LATER));
        return;
      }

      Dice d = new Dice (activeChar.getObjectId(),item.getItemId(),number,activeChar.getX()-30,activeChar.getY()-30,activeChar.getZ() );
            Broadcast.toSelfAndKnownPlayers(activeChar, d);

      SystemMessage sm = new SystemMessage(SystemMessageId.S1_ROLLED_S2);
      sm.addString(activeChar.getName());
      sm.addNumber(number);
View Full Code Here

Examples of transientlibs.objects.general.Dice

    public void getCard(Action ofAction) {
        hand.add(new Card(ofAction));
    }

    public void drawCard(NodeArrayList<Action> collectedCards) {
        Dice cardRoller = new Dice();

        for (Action a : collectedCards) {
            cardRoller.addOption(a.adjustedChanceToDraw, a.ID);
        }

        cardRoller.rollDice();

        getCard(Action.getActionByID(cardRoller.resultID));

        Log.info("Card drawn: " + hand.get(hand.size() - 1).action.LName);
    }
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.