Package VASSAL.counters
Class GlobalCommand.Visitor
java.lang.Object
VASSAL.counters.GlobalCommand.Visitor
- All Implemented Interfaces:
DeckVisitor
,PieceVisitor
- Enclosing class:
- GlobalCommand
protected class GlobalCommand.Visitor extends Object implements DeckVisitor
-
Constructor Summary
Constructors Constructor Description Visitor(Command command, PieceFilter filter, KeyStroke stroke)
-
Method Summary
Modifier and Type Method Description Command
getCommand()
BoundsTracker
getTracker()
Object
visitDeck(Deck d)
Perform the operation on a DeckObject
visitDefault(GamePiece p)
GamePieces that are not handled by one of the type-specific methods (e.g.Object
visitStack(Stack s)
Perform the operation on a Stack
-
Constructor Details
-
Visitor
-
-
Method Details
-
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
-