Class GlobalCommand.Visitor
java.lang.Object
VASSAL.counters.GlobalCommand.Visitor
-
Constructor Summary
ConstructorDescriptionVisitor
(Command command, PieceFilter filter, KeyStroke stroke) Visitor
(Command command, PieceFilter filter, KeyStroke stroke, AuditTrail audit) -
Method Summary
Modifier and TypeMethodDescriptionint
void
setSelectedCount
(int selectedCount) 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
-
Constructor Details
-
Visitor
-
Visitor
-
-
Method Details
-
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
-
getCommand
-
getTracker
-