Uses of Interface
VASSAL.counters.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
Modifier and TypeMethodDescriptionMap.findAnyPiece
(Point pt, PieceFinder finder) Use the providedPieceFinder
instance to locate any piece at the given location, regardless of whether it is visible or not.Map.findPiece
(Point pt, PieceFinder finder) Use the providedPieceFinder
instance to locate a visible piece at the given location -
Uses of PieceFinder in VASSAL.build.module.map
Modifier and TypeFieldDescriptionprotected PieceFinder
PieceMover.dragTargetSelector
protected PieceFinder
PieceMover.dropTargetSelector
protected PieceFinder
MenuDisplayer.targetSelector
Modifier and TypeMethodDescriptionprotected PieceFinder
PieceMover.createDragTargetSelector()
Returns thePieceFinder
instance that will select aGamePiece
for processing when the user clicks on the map.protected PieceFinder
PieceMover.createDropTargetSelector()
protected PieceFinder
MapCenterer.createPieceFinder()
When the user right-clicks on the Map, the view will center on the location of the click unless thisPieceFinder
locates a piece there.protected PieceFinder
MenuDisplayer.createTargetSelector()
Return aPieceFinder
instance that will select aGamePiece
whose menu will be displayed when the user clicks on the mapprotected PieceFinder
PieceMover.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
Modifier and TypeClassDescriptionstatic class
static class
Returns a Mat that overlaps this piecestatic class
static class
static class
Modifier and TypeFieldDescriptionstatic final PieceFinder
PieceFinder.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.static final PieceFinder
PieceFinder.MAT_ONLY
static final PieceFinder
PieceFinder.MOVABLE
Returns a Stack if unexpanded and overlapping the given point, or a piece within that stack if expanded and overlapping the given pointstatic final PieceFinder
PieceFinder.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.static final PieceFinder
PieceFinder.STACK_ONLY
Return a Stack overlapping the given point