Class ChangeAction

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

    public class ChangeAction
    extends UnitAction
    An action for changing the view. This action will: - Open a colony panel if the active unit is located on a tile with a colony. - If aboard a carrier then the carrier will be the active unit. - In other cases: switch to another unit on the same tile.
    See Also:
    Serialized Form
    • Constructor Detail

      • ChangeAction

        public ChangeAction​(FreeColClient freeColClient)
        Creates this action.
        Parameters:
        freeColClient - The FreeColClient for the game.