Class MoveAction

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, ObjectWithId, Option<FreeColAction>

    public class MoveAction
    extends MapboardAction
    An action for chosing the next unit as the active unit.
    See Also:
    Serialized Form
    • Constructor Detail

      • MoveAction

        public MoveAction​(FreeColClient freeColClient,
                          Direction direction)
        Creates a new MoveAction.
        Parameters:
        freeColClient - The FreeColClient for the game.
        direction - The Direction to move.
      • MoveAction

        public MoveAction​(FreeColClient freeColClient,
                          Direction direction,
                          boolean secondary)
        Creates a new MoveAction.
        Parameters:
        freeColClient - The FreeColClient for the game.
        direction - The Direction to move in.
        secondary - a boolean value
    • Method Detail

      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent ae)