Class UnloadAction

    • Constructor Detail

      • UnloadAction

        public UnloadAction​(FreeColClient freeColClient)
        Creates an action for unloading the currently selected unit.
        Parameters:
        freeColClient - The FreeColClient for the game.
      • UnloadAction

        public UnloadAction​(FreeColClient freeColClient,
                            Unit unit)
        Creates an action for unloading the Unit provided. If the Unit is null, then the currently selected unit is used instead.
        Parameters:
        freeColClient - The FreeColClient for the game.
        unit - The Unit to unload.
    • Method Detail

      • getUnit

        private Unit getUnit()
      • actionPerformed

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