Class GlobalSetter
java.lang.Object
VASSAL.counters.GlobalCommand
VASSAL.counters.GlobalSetter
- All Implemented Interfaces:
Auditable
Variant on GlobalCommand for use with SetPieceProperty -- instead of sending a key, finds pieces and sets their properties
-
Nested Class Summary
Nested ClassesNested 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
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiongetVisitor(Command command, PieceFilter filter, KeyStroke keyStroke, AuditTrail audit, Auditable owner, int selectFromDeck) booleanAllows subclasses like GlobalAttach to operate with no key command to sendMethods inherited from class GlobalCommand
apply, apply, apply, apply, apply, apply, checkForMatchingAttachments, equals, getComponentName, getComponentTypeName, getKeyStroke, getParameters, getPropertySource, getReportFormat, getSelectFromDeck, getSelectFromDeckExpression, getTarget, hashCode, 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 isReturn a description of the Type of trait or Component an Auditable isintinthashCode()booleanbooleanvoidsetKeyStroke(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
-
GlobalSetter
-
GlobalSetter
-
-
Method Details
-
isAbortIfNoCommand
public boolean isAbortIfNoCommand()Description copied from class:GlobalCommandAllows subclasses like GlobalAttach to operate with no key command to send- Overrides:
isAbortIfNoCommandin classGlobalCommand- Returns:
- true if we should short-circuit (abort) the search if we have no key command to send
-
getVisitor
public GlobalCommandVisitor getVisitor(Command command, PieceFilter filter, KeyStroke keyStroke, AuditTrail audit, Auditable owner, int selectFromDeck) - Overrides:
getVisitorin classGlobalCommand
-