Examples of onAction()


Examples of com.l2jfrozen.gameserver.model.L2Object.onAction()

    if (activeChar.getPrivateStoreType() == 0/* && activeChar.getActiveRequester() == null*/)
    {
      switch(_actionId)
      {
        case 0:
          obj.onAction(activeChar);
          break;
        case 1:
          if (obj instanceof L2Character && ((L2Character) obj).isAlikeDead())
            obj.onAction(activeChar);
          else
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Object.onAction()

        case 0:
          obj.onAction(activeChar);
          break;
        case 1:
          if (obj instanceof L2Character && ((L2Character) obj).isAlikeDead())
            obj.onAction(activeChar);
          else
            obj.onActionShift(getClient());
          break;
        default:
          // Invalid action detected (probably client cheating), log this
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Object.onAction()

      String targetName = command.substring(13);
      L2Object obj = L2World.getInstance().getPlayer(targetName);

      if(obj != null && obj instanceof L2PcInstance)
      {
        obj.onAction(activeChar);
      }
      else
      {
        SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
        sm.addString("Player " + targetName + " not found");
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2Object.onAction()

        }
      }
    }
   
    if (activeChar.getTarget() != target)
      target.onAction(activeChar);
    else
    {
      if ((target.getObjectId() != activeChar.getObjectId()) && activeChar.getPrivateStoreType() == 0
      /* && activeChar.getActiveRequester() ==null */)
        target.onForcedAttack(activeChar);
 
View Full Code Here

Examples of games.stendhal.client.gui.j2d.entity.EntityView.onAction()

            + direction.getdx(), user.getY() + direction.getdy());

        if (view != null) {
          final IEntity entity = view.getEntity();
          if (!entity.equals(user)) {
            view.onAction();
          }
        }
      }

      processDirectionPress(direction, e.isControlDown());
View Full Code Here

Examples of games.stendhal.client.gui.j2d.entity.EntityView.onAction()

    // for the clicked entity....
    final EntityView view = screen.getEntityViewAt(location.getX(), location.getY());
    boolean doubleClick = Boolean.parseBoolean(WtWindowManager.getInstance().getProperty("ui.doubleclick", "false"));
    if ((view != null) && view.isInteractive()) {
      if (isCtrlDown()) {
        view.onAction();
        return true;
      } else if (isShiftDown()) {
        view.onAction(ActionType.LOOK);
        return true;
      } else if (!doubleClick) {
View Full Code Here

Examples of games.stendhal.client.gui.j2d.entity.EntityView.onAction()

    if ((view != null) && view.isInteractive()) {
      if (isCtrlDown()) {
        view.onAction();
        return true;
      } else if (isShiftDown()) {
        view.onAction(ActionType.LOOK);
        return true;
      } else if (!doubleClick) {
        return view.onHarmlessAction();
      }
    } else if (windowWasActiveOnMousePressed && !isCtrlDown()) {
View Full Code Here

Examples of games.stendhal.client.gui.j2d.entity.EntityView.onAction()

    final EntityView view = screen.getEntityViewAt(location.getX(), location.getY());

    if ((view != null) && view.isInteractive()) {
      // ... do the default action
      view.onAction();
      return true;
    } else {
      createAndSendMoveToAction(location, true);
      return true;
    }
View Full Code Here

Examples of games.stendhal.server.actions.admin.AdministrationAction.onAction()

    action.put("stat", "hp");
    action.put("mode", "");
    action.put("value", 0);
    assertEquals(100, pl.getHP());

    aa.onAction(pl, action);
    assertEquals("may not change HP to 0 ", 100, pl.getHP());

    action.put("value", 120);
    aa.onAction(pl, action);
    assertEquals("may  not change HP over base_hp", 100, pl.getHP());
View Full Code Here

Examples of games.stendhal.server.actions.admin.AdministrationAction.onAction()

    aa.onAction(pl, action);
    assertEquals("may not change HP to 0 ", 100, pl.getHP());

    action.put("value", 120);
    aa.onAction(pl, action);
    assertEquals("may  not change HP over base_hp", 100, pl.getHP());

    action.put("value", 90);
    aa.onAction(pl, action);
    assertEquals("may  change HP to 90 ", 90, pl.getHP());
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.