Class arrowAction

java.lang.Object
javax.swing.AbstractAction
fr.formiko.views.gui2d.arrowAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

class arrowAction extends AbstractAction
Do a map move as an arrow action.
Author:
Hydrolien
  • Field Details

    • inX

      private boolean inX
    • up

      private boolean up
    • speed

      private double speed
  • Constructor Details

    • arrowAction

      public arrowAction(boolean inX, boolean up, boolean keyRelease)
      Main constructor.
      Parameters:
      inX - true if we are moving in x, false if we are moving in y
      up - true if windows should up in X or in Y
      keyRelease - if true speed is set to 0 else speed is set to 1
  • Method Details

    • toString

      public String toString()
      Strandard to string.
      Overrides:
      toString in class Object
    • actionPerformed

      public void actionPerformed(ActionEvent actionEvent)
      Do a map move action.