Uses of Interface
VASSAL.counters.PieceFinder
Packages that use PieceFinder
Package
Description
Contains classes that may be added to a
GameModule.Contains classes that may be added to a
Map.Provides classes that define game pieces.
-
Uses of PieceFinder in VASSAL.build.module
Methods in VASSAL.build.module with parameters of type PieceFinderModifier and TypeMethodDescriptionMap.findAnyPiece(Point pt, PieceFinder finder) Use the providedPieceFinderinstance to locate any piece at the given location, regardless of whether it is visible or not.Map.findPiece(Point pt, PieceFinder finder) Use the providedPieceFinderinstance to locate a visible piece at the given location -
Uses of PieceFinder in VASSAL.build.module.map
Classes in VASSAL.build.module.map that implement PieceFinderFields in VASSAL.build.module.map declared as PieceFinderModifier and TypeFieldDescriptionprotected PieceFinderPieceMover.dragTargetSelectorprotected PieceFinderPieceMover.dropTargetSelectorprotected PieceFinderMenuDisplayer.targetSelectorMethods in VASSAL.build.module.map that return PieceFinderModifier and TypeMethodDescriptionprotected PieceFinderPieceMover.createDragTargetSelector()Returns thePieceFinderinstance that will select aGamePiecefor processing when the user clicks on the map.protected PieceFinderPieceMover.createDropTargetSelector()protected PieceFinderMapCenterer.createPieceFinder()When the user right-clicks on the Map, the view will center on the location of the click unless thisPieceFinderlocates a piece there.protected PieceFinderMenuDisplayer.createTargetSelector()Return aPieceFinderinstance that will select aGamePiecewhose menu will be displayed when the user clicks on the mapprotected PieceFinderPieceMover.getDropTargetSelector(GamePiece piece, MatCargo cargo, Mat mat) Return a DropTargetSelector suitable for the type of piece being moved When the user *completes* a drag-and-drop operation, the pieces being dragged will either be:
(1) combined in a stack with an existing piece (or stack, or deck) on the map
(2) placed alone in a brand new stack
(3) or, in the case of non-stacking pieces, placed on the map without stack. -
Uses of PieceFinder in VASSAL.counters
Classes in VASSAL.counters that implement PieceFinderModifier and TypeClassDescriptionstatic classstatic classReturns a Mat that overlaps this piecestatic classstatic classstatic classFields in VASSAL.counters declared as PieceFinderModifier and TypeFieldDescriptionstatic final PieceFinderPieceFinder.DECK_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 final PieceFinderPieceFinder.MAT_ONLYstatic final PieceFinderPieceFinder.MOVABLEReturns a Stack if unexpanded and overlapping the given point, or a piece within that stack if expanded and overlapping the given pointstatic final PieceFinderPieceFinder.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 final PieceFinderPieceFinder.STACK_ONLYReturn a Stack overlapping the given point