Class PieceFinder.PieceInStack
java.lang.Object
VASSAL.counters.PieceFinder.Movable
VASSAL.counters.PieceFinder.PieceInStack
- All Implemented Interfaces:
DeckVisitor, PieceFinder, PieceVisitor
- Direct Known Subclasses:
PieceFinder.DeckOrPieceInStack
- Enclosing interface:
PieceFinder
-
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
Fields 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
Constructors -
Method Summary
Methods inherited from class PieceFinder.Movable
select, visitDeck, visitDefaultModifier and TypeMethodDescriptionReturn the argument GamePiece (or one of its children if a Stack) found at the given point on the given MapPerform the operation on a DeckvisitDefault(GamePiece piece) GamePieces that are not handled by one of the type-specific methods (e.g.
-
Constructor Details
-
PieceInStack
public PieceInStack()
-
-
Method Details
-
visitStack
Description copied from interface:PieceVisitorPerform the operation on a Stack- Specified by:
visitStackin interfacePieceVisitor- Overrides:
visitStackin classPieceFinder.Movable
-