Class ImprovementAction

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

    public class ImprovementAction
    extends UnitAction
    An action for using the active unit to add a tile improvement to the unit's tile, possibly changing the tile type in the process. In the original game, artificial tile improvements were clearing, plowing and building a road.
    See Also:
    Serialized Form
    • Constructor Detail

      • ImprovementAction

        public ImprovementAction​(FreeColClient freeColClient,
                                 TileImprovementType improvement)
        Creates this action.
        Parameters:
        freeColClient - The FreeColClient for the game.
        improvement - The TileImprovementType to make.
    • Method Detail

      • actionPerformed

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