示例#1
0
 public ActionRedirect forwardBackward(
     final IUIBean bean, final String listenerType, final String actionName, final EventObject e) {
   final GameBean gb = (GameBean) bean;
   MoveObjectHelper.move(
       gb.getSc3d(),
       GameBean.CAMERA,
       gb.getSc3d().getCameraTransformGroup(),
       2,
       EventMethods.getWheelRotation(e),
       0,
       EventMethods.getScrollAmount(e),
       0,
       0);
   return null;
 }
示例#2
0
  public ActionRedirect movement(
      final IUIBean bean, final String listenerType, final String actionName, final EventObject e) {
    final GameBean gb = (GameBean) bean;
    final Session session = ScrabbleSessionsHandler.get();
    final Integer turn = (Integer) session.get(ChangeTurnBean.TURN);
    int turnInt = 0;
    if (turn != null) {
      turnInt = turn.intValue();
    }

    MoveObjectHelper.move(
        gb.getSc3d(),
        gb.getTypeOfObjectMoved(),
        gb.getMoveObject(),
        gb.getButtonPressed().intValue(),
        gb.getMouseActualX().intValue(),
        gb.getMousePressX().intValue(),
        gb.getMouseActualY().intValue(),
        gb.getMousePressY().intValue(),
        turnInt);
    return null;
  }