Class DeckGlobalKeyCommand.DeckGlobalCommand
java.lang.Object
VASSAL.counters.GlobalCommand
VASSAL.build.module.map.DeckGlobalKeyCommand.DeckGlobalCommand
- All Implemented Interfaces:
Auditable
- Enclosing class:
DeckGlobalKeyCommand
-
Nested Class Summary
Nested classes/interfaces inherited from class GlobalCommand
GlobalCommand.IndexedFastmatchDeckPolicyManager, GlobalCommand.VisitorModifier and TypeClassDescriptionprotected classA class to manage the application of GKC's against multiple Decks by the Fast Match Code that uses Location indexes.protected class -
Field Summary
Fields inherited from class GlobalCommand
keyStroke, owner, parameters, reportFormat, reportSingle, selectFromDeck, selectFromDeckExpression, source, suppressSounds, targetModifier and TypeFieldDescriptionprotected KeyStrokeprotected RecursionLimiter.Loopableprotected FormattedStringprotected booleanprotected intprotected Stringprotected PropertySourceprotected booleanprotected GlobalCommandTarget -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(Deck d, PieceFilter filter) Return a description of the Type of trait or Component an Auditable isMethods inherited from class GlobalCommand
apply, apply, apply, apply, apply, apply, checkForMatchingAttachments, equals, getComponentName, getKeyStroke, getParameters, getPropertySource, getReportFormat, getSelectFromDeck, getSelectFromDeckExpression, getTarget, getVisitor, hashCode, isAbortIfNoCommand, isReportSingle, isSuppressSounds, setKeyStroke, setKeyStroke, setParameters, setPropertySource, setRange, setReportFormat, setReportSingle, setSelectFromDeck, setSelectFromDeckExpression, setSuppressSounds, setTargetModifier and TypeMethodDescriptionapply(Map[] maps, PieceFilter filter) (Legacy - applies GKC without Fast Match)apply(Map[] maps, PieceFilter filter, GlobalCommandTarget fastMatch) Apply the key command to all pieces that pass the given filter and our Fast MatchGlobalCommandTargetparameters on all the given mapsapply(Map[] maps, PieceFilter filter, GlobalCommandTarget fastMatch, AuditTrail audit) Apply the key command to all pieces that pass the given filter and our Fast MatchGlobalCommandTargetparameters on all the given mapsapply(Map map, PieceFilter filter) (Legacy - applies GKC without Fast Match)apply(Map map, PieceFilter filter, GlobalCommandTarget fastMatch) Apply the key command on ONE SPECIFIC MAP to all pieces that pass the given filter and our Fast Match parameters.apply(Map map, PieceFilter filter, GlobalCommandTarget fastMatch, AuditTrail audit) protected voidcheckForMatchingAttachments(Attachment attach, String attachmentName, String attachmentId, Set<GamePiece> pieces) booleanReturn the name of the trait or Component an Auditable isintprotected GlobalCommandVisitorgetVisitor(Command command, PieceFilter filter, KeyStroke keyStroke, AuditTrail audit, Auditable owner, int selectFromDeck) inthashCode()booleanAllows subclasses like GlobalAttach to operate with no key command to sendbooleanbooleanvoidsetKeyStroke(KeyStroke keyStroke) voidsetKeyStroke(NamedKeyStroke keyStroke) voidsetParameters(List<Parameter> parameters) voidvoidvoidsetReportFormat(String format) voidsetReportSingle(boolean reportSingle) voidsetSelectFromDeck(int selectFromDeck) Set the number of pieces to select from a deck that the command will apply to.voidsetSelectFromDeckExpression(String selectFromDeck) Set the number of pieces to select from a deck that the command will apply to.voidsetSuppressSounds(boolean suppressSounds) voidsetTarget(GlobalCommandTarget target)
-
Constructor Details
-
DeckGlobalCommand
-
-
Method Details
-
getComponentTypeName
Description copied from interface:AuditableReturn a description of the Type of trait or Component an Auditable is- Specified by:
getComponentTypeNamein interfaceAuditable- Overrides:
getComponentTypeNamein classGlobalCommand- Returns:
- Component Type
-
apply
-