Package VASSAL.counters
Interface PieceVisitor
- All Known Subinterfaces:
DeckVisitor
- All Known Implementing Classes:
CounterDetailViewer.Visitor
,GlobalCommand.Visitor
,KeyBufferer.KBDeckVisitor
,LayeredPieceCollection.Collection
,Map.Merger
,PieceFinder.DeckOrPieceInStack
,PieceFinder.Movable
,PieceFinder.PieceInStack
,PieceFinder.StackOnly
,PieceRecenterer
public interface PieceVisitor
For implementing a somewhat modified Visitor pattern for
GamePiece
s.- See Also:
PieceVisitorDispatcher
-
Method Summary
Modifier and TypeMethodDescriptionGamePieces that are not handled by one of the type-specific methods (e.g.visitStack(Stack s)
Perform the operation on a Stack
-
Method Details
-
visitStack
Perform the operation on a Stack -
visitDefault
GamePieces that are not handled by one of the type-specific methods (e.g.visitStack(VASSAL.counters.Stack)
) are handled here
-