Package games.stendhal.client.gui.j2d.entity

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


    // 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

    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

    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

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.