Package VASSAL.counters
Class GlobalDetach
java.lang.Object
VASSAL.counters.GlobalCommand
VASSAL.counters.GlobalDetach
- All Implemented Interfaces:
Auditable
Variant on GlobalCommand for use with Attachment -- instead of sending a key, finds pieces and *detaches* them
-
Nested Class Summary
Nested classes/interfaces inherited from class VASSAL.counters.GlobalCommand
GlobalCommand.IndexedFastmatchDeckPolicyManager, GlobalCommand.Visitor
-
Field Summary
Fields inherited from class VASSAL.counters.GlobalCommand
keyStroke, owner, parameters, reportFormat, reportSingle, selectFromDeck, selectFromDeckExpression, source, suppressSounds, target
-
Constructor Summary
ConstructorDescriptionGlobalDetach
(Attachment attach) GlobalDetach
(Attachment attach, PropertySource p) -
Method Summary
Modifier and TypeMethodDescriptiongetVisitor
(Command command, PieceFilter filter, KeyStroke keyStroke, AuditTrail audit, Auditable owner, int selectFromDeck) boolean
Allows subclasses like GlobalAttach to operate with no key command to sendMethods inherited from class VASSAL.counters.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, setTarget
-
Field Details
-
attach
-
-
Constructor Details
-
GlobalDetach
-
GlobalDetach
-
-
Method Details
-
isAbortIfNoCommand
public boolean isAbortIfNoCommand()Description copied from class:GlobalCommand
Allows subclasses like GlobalAttach to operate with no key command to send- Overrides:
isAbortIfNoCommand
in 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:
getVisitor
in classGlobalCommand
-