Package VASSAL.counters
Class GlobalCommandVisitor
java.lang.Object
VASSAL.counters.GlobalCommandVisitor
- All Implemented Interfaces:
DeckVisitor,PieceVisitor
- Direct Known Subclasses:
GlobalAttach.AttachVisitor,GlobalDetach.DetachVisitor,GlobalSetter.SetVisitor
When processing a GlobalCommand (either a Global Key Command or an Attachment command), this applies the
"additional properties filter"
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AuditTrailprotected final Commandprotected final PieceFilterprotected int -
Constructor Summary
ConstructorsConstructorDescriptionGlobalCommandVisitor(Command command, PieceFilter filter, KeyStroke stroke) GlobalCommandVisitor(Command command, PieceFilter filter, KeyStroke stroke, AuditTrail audit) GlobalCommandVisitor(Command command, PieceFilter filter, KeyStroke stroke, AuditTrail audit, Auditable owner, int selectFromDeck) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidintintvoidvoidsetSelectedCount(int selectedCount) voidsetSelectFromDeck(int val) Perform the operation on a DeckGamePieces that are not handled by one of the type-specific methods (e.g.visitStack(Stack s) Perform the operation on a Stack
-
Field Details
-
command
-
filter
-
selectedCount
protected int selectedCount -
auditSoFar
-
-
Constructor Details
-
GlobalCommandVisitor
-
GlobalCommandVisitor
public GlobalCommandVisitor(Command command, PieceFilter filter, KeyStroke stroke, AuditTrail audit) -
GlobalCommandVisitor
public GlobalCommandVisitor(Command command, PieceFilter filter, KeyStroke stroke, AuditTrail audit, Auditable owner, int selectFromDeck)
-
-
Method Details
-
setOwner
-
setSelectFromDeck
public void setSelectFromDeck(int val) -
getSelectFromDeck
public int getSelectFromDeck() -
setSelectedCount
public void setSelectedCount(int selectedCount) -
getSelectedCount
public int getSelectedCount() -
visitDeck
Description copied from interface:DeckVisitorPerform the operation on a Deck- Specified by:
visitDeckin interfaceDeckVisitor
-
visitStack
Description copied from interface:PieceVisitorPerform the operation on a Stack- Specified by:
visitStackin interfacePieceVisitor
-
visitDefault
Description copied from interface:PieceVisitorGamePieces that are not handled by one of the type-specific methods (e.g.PieceVisitor.visitStack(VASSAL.counters.Stack)) are handled here- Specified by:
visitDefaultin interfacePieceVisitor
-
apply
-
apply
-
getCommand
-
getTracker
-