Package VASSAL.counters
Interface PieceVisitor
- All Known Subinterfaces:
DeckVisitor
- All Known Implementing Classes:
CounterDetailViewer.Visitor,GlobalAttach.AttachVisitor,GlobalCommand.Visitor,GlobalCommandVisitor,GlobalDetach.DetachVisitor,GlobalSetter.SetVisitor,KeyBufferer.KBDeckVisitor,LayeredPieceCollection.Collection,Map.Merger,PieceFinder.DeckOrPieceInStack,PieceFinder.MatOnly,PieceFinder.Movable,PieceFinder.PieceInStack,PieceFinder.StackOnly,PieceRecenterer
public interface PieceVisitor
For implementing a somewhat modified Visitor pattern for
GamePieces.- See Also:
-
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
-