Class CounterDetailViewer.Visitor
java.lang.Object
VASSAL.counters.PieceFinder.Movable
VASSAL.build.module.map.CounterDetailViewer.Visitor
- All Implemented Interfaces:
DeckVisitor, PieceFinder, PieceVisitor
- Enclosing class:
CounterDetailViewer
- Version:
- 1.0
- Author:
- David Sullivan
-
Nested Class Summary
Nested classes/interfaces inherited from interface PieceFinder
PieceFinder.DeckOrPieceInStack, PieceFinder.MatOnly, PieceFinder.Movable, PieceFinder.PieceInStack, PieceFinder.StackOnlyModifier and TypeInterfaceDescriptionstatic classstatic classReturns a Mat that overlaps this piecestatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CompoundPieceCollectionprotected CounterDetailViewer.Filterprotected Pointprotected intprotected intprotected final booleanprotected booleanprotected final intprotected final booleanFields inherited from class PieceFinder.Movable
dispatcher, map, pt, shapesModifier and TypeFieldDescriptionprotected DeckVisitorDispatcherprotected Mapprotected Pointprotected Shape[]Fields inherited from interface PieceFinder
DECK_OR_PIECE_IN_STACK, MAT_ONLY, MOVABLE, PIECE_IN_STACK, STACK_ONLYModifier and TypeFieldDescriptionstatic final PieceFinderIf a Stack overlaps the given point, return the piece containing that point if expanded, or the top piece if not expanded.static final PieceFinderstatic final PieceFinderReturns a Stack if unexpanded and overlapping the given point, or a piece within that stack if expanded and overlapping the given pointstatic final PieceFinderIf a Stack overlaps the given point, return the piece containing that point if expanded, or the top piece if not expanded.static final PieceFinderReturn a Stack overlapping the given point -
Constructor Summary
ConstructorsConstructorDescriptionVisitor(CounterDetailViewer.Filter filter, Map map, Point pt, boolean showOverlap) Deprecated, for removal: This API element is subject to removal in a future version.Visitor(CounterDetailViewer.Filter filter, Map map, Point pt, boolean showOverlap, int showNumberFromDeck, boolean showDeckMasked) Visitor(CounterDetailViewer.Filter filter, Map map, Point pt, boolean showOverlap, int showNumberFromDeck, boolean showDeckMasked, boolean showOnlyTopOfStack) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidPerform 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 StackMethods inherited from class PieceFinder.Movable
select
-
Field Details
-
pieces
-
filter
-
collection
-
lastLayer
protected int lastLayer -
insertPos
protected int insertPos -
foundPieceAt
-
showingOverlap
protected boolean showingOverlap -
showNumberFromDeck
protected final int showNumberFromDeck -
showDeckMasked
protected final boolean showDeckMasked -
showOnlyTopOfStack
protected final boolean showOnlyTopOfStack
-
-
Constructor Details
-
Visitor
@Deprecated(since="2021-12-01", forRemoval=true) public Visitor(CounterDetailViewer.Filter filter, Map map, Point pt, boolean showOverlap) Deprecated, for removal: This API element is subject to removal in a future version. -
Visitor
public Visitor(CounterDetailViewer.Filter filter, Map map, Point pt, boolean showOverlap, int showNumberFromDeck, boolean showDeckMasked) -
Visitor
public Visitor(CounterDetailViewer.Filter filter, Map map, Point pt, boolean showOverlap, int showNumberFromDeck, boolean showDeckMasked, boolean showOnlyTopOfStack)
-
-
Method Details
-
visitDeck
Description copied from interface:DeckVisitorPerform the operation on a Deck- Specified by:
visitDeckin interfaceDeckVisitor- Overrides:
visitDeckin classPieceFinder.Movable
-
visitStack
Description copied from interface:PieceVisitorPerform the operation on a Stack- Specified by:
visitStackin interfacePieceVisitor- Overrides:
visitStackin classPieceFinder.Movable
-
visitDefault
Description copied from interface:PieceVisitorGamePieces that are not handled by one of the type-specific methods (e.g.PieceVisitor.visitStack(Stack)) are handled here- Specified by:
visitDefaultin interfacePieceVisitor- Overrides:
visitDefaultin classPieceFinder.Movable
-
apply
-
getPieces
-