Package VASSAL.build.module.map
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface VASSAL.counters.PieceFinder
PieceFinder.DeckOrPieceInStack, PieceFinder.MatOnly, PieceFinder.Movable, PieceFinder.PieceInStack, PieceFinder.StackOnly
-
Field Summary
Modifier and TypeFieldDescriptionprotected CompoundPieceCollection
protected CounterDetailViewer.Filter
protected Point
protected int
protected int
protected final boolean
protected boolean
protected final int
protected final boolean
Fields inherited from class VASSAL.counters.PieceFinder.Movable
dispatcher, map, pt, shapes
Fields inherited from interface VASSAL.counters.PieceFinder
DECK_OR_PIECE_IN_STACK, MAT_ONLY, MOVABLE, PIECE_IN_STACK, STACK_ONLY
-
Constructor Summary
ConstructorDescriptionVisitor
(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 void
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 StackMethods inherited from class VASSAL.counters.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:DeckVisitor
Perform the operation on a Deck- Specified by:
visitDeck
in interfaceDeckVisitor
- Overrides:
visitDeck
in classPieceFinder.Movable
-
visitStack
Description copied from interface:PieceVisitor
Perform the operation on a Stack- Specified by:
visitStack
in interfacePieceVisitor
- Overrides:
visitStack
in classPieceFinder.Movable
-
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
- Overrides:
visitDefault
in classPieceFinder.Movable
-
apply
-
getPieces
-