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
Modifier and TypeFieldDescriptionprotected final AuditTrail
protected Command
protected final PieceFilter
protected int
-
Constructor Summary
ConstructorDescriptionGlobalCommandVisitor
(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) GlobalCommandVisitor
(Command command, PieceFilter filter, KeyStroke stroke, AuditTrail audit, Auditable owner, int selectFromDeck, GlobalCommand globalCommand) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
int
int
void
void
setSelectedCount
(int selectedCount) void
setSelectFromDeck
(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) -
GlobalCommandVisitor
public GlobalCommandVisitor(Command command, PieceFilter filter, KeyStroke stroke, AuditTrail audit, Auditable owner, int selectFromDeck, GlobalCommand globalCommand)
-
-
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:DeckVisitor
Perform the operation on a Deck- Specified by:
visitDeck
in interfaceDeckVisitor
-
visitStack
Description copied from interface:PieceVisitor
Perform the operation on a Stack- Specified by:
visitStack
in interfacePieceVisitor
-
visitDefault
Description copied from interface:PieceVisitor
GamePieces that are not handled by one of the type-specific methods (e.g.PieceVisitor.visitStack(VASSAL.counters.Stack)
) are handled here- Specified by:
visitDefault
in interfacePieceVisitor
-
apply
-
apply
-
getCommand
-
getTracker
-