Class GlobalCommand

java.lang.Object
VASSAL.counters.GlobalCommand
Direct Known Subclasses:
DeckGlobalKeyCommand.DeckGlobalCommand

public class GlobalCommand
extends Object
Applies a given keyboard command to all counters on a map
  • Field Details

  • Constructor Details

  • Method Details

    • setPropertySource

      public void setPropertySource​(PropertySource ps)
    • setKeyStroke

      public void setKeyStroke​(KeyStroke keyStroke)
    • setKeyStroke

      public void setKeyStroke​(NamedKeyStroke keyStroke)
    • setReportFormat

      public void setReportFormat​(String format)
    • getKeyStroke

      public KeyStroke getKeyStroke()
    • getReportFormat

      public String getReportFormat()
    • isReportSingle

      public boolean isReportSingle()
    • setReportSingle

      public void setReportSingle​(boolean reportSingle)
    • apply

      public Command apply​(Map m, PieceFilter filter)
    • apply

      public Command apply​(Map[] m, PieceFilter filter)
      Apply the key command to all pieces that pass the given filter on all the given maps
      Parameters:
      m -
      filter -
      Returns:
      a the corresponding Command
    • getSelectFromDeck

      public int getSelectFromDeck()
    • setSelectFromDeck

      public void setSelectFromDeck​(int selectFromDeck)
      Set the number of pieces to select from a deck that the command will apply to. A value <0 means to apply to all pieces in the deck
      Parameters:
      selectFromDeck -
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals​(Object obj)
      Overrides:
      equals in class Object