Package VASSAL.counters
Interface PieceFinder
- All Known Implementing Classes:
CounterDetailViewer.Visitor,PieceFinder.DeckOrPieceInStack,PieceFinder.Movable,PieceFinder.PieceInStack,PieceFinder.StackOnly
public interface PieceFinder
This interface defines selection criteria for finding a GamePiece in a Map
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPieceFinder.DeckOrPieceInStackstatic classPieceFinder.Movablestatic classPieceFinder.PieceInStackstatic classPieceFinder.StackOnly -
Field Summary
Fields Modifier and Type Field Description static PieceFinderDECK_OR_PIECE_IN_STACKIf a Stack overlaps the given point, return the piece containing that point if expanded, or the top piece if not expanded.static PieceFinderMOVABLEReturns a Stack if unexpanded and overlapping the given point, or a piece within that stack if expanded and overlapping the given pointstatic PieceFinderPIECE_IN_STACKIf a Stack overlaps the given point, return the piece containing that point if expanded, or the top piece if not expanded.static PieceFinderSTACK_ONLYReturn a Stack overlapping the given point -
Method Summary
-
Field Details
-
STACK_ONLY
Return a Stack overlapping the given point -
PIECE_IN_STACK
If a Stack overlaps the given point, return the piece containing that point if expanded, or the top piece if not expanded. -
DECK_OR_PIECE_IN_STACK
If a Stack overlaps the given point, return the piece containing that point if expanded, or the top piece if not expanded. If a Deck is found instead, return the deck. -
MOVABLE
Returns a Stack if unexpanded and overlapping the given point, or a piece within that stack if expanded and overlapping the given point
-
-
Method Details
-
select
Return the argument GamePiece (or one of its children if a Stack) found at the given point on the given Map
-