Package VASSAL.counters
Class PieceFinder.Movable
java.lang.Object
VASSAL.counters.PieceFinder.Movable
- All Implemented Interfaces:
DeckVisitor,PieceFinder,PieceVisitor
- Direct Known Subclasses:
CounterDetailViewer.Visitor,PieceFinder.PieceInStack,PieceFinder.StackOnly
- Enclosing interface:
- PieceFinder
public static class PieceFinder.Movable extends Object implements PieceFinder, DeckVisitor
-
Nested Class Summary
Nested classes/interfaces inherited from interface VASSAL.counters.PieceFinder
PieceFinder.DeckOrPieceInStack, PieceFinder.Movable, PieceFinder.PieceInStack, PieceFinder.StackOnly -
Field Summary
Fields Modifier and Type Field Description protected DeckVisitorDispatcherdispatcherprotected Mapmapprotected Pointptprotected Shape[]shapesFields inherited from interface VASSAL.counters.PieceFinder
DECK_OR_PIECE_IN_STACK, MOVABLE, PIECE_IN_STACK, STACK_ONLY -
Constructor Summary
-
Method Summary
Modifier and Type Method Description GamePieceselect(Map map, GamePiece piece, Point pt)Return the argument GamePiece (or one of its children if a Stack) found at the given point on the given MapObjectvisitDeck(Deck d)Perform the operation on a DeckObjectvisitDefault(GamePiece piece)GamePieces that are not handled by one of the type-specific methods (e.g.ObjectvisitStack(Stack s)Perform the operation on a Stack
-
Field Details
-
shapes
-
map
-
pt
-
dispatcher
-
-
Constructor Details
-
Movable
public Movable() -
Movable
-
-
Method Details
-
visitDeck
Description copied from interface:DeckVisitorPerform the operation on a Deck- Specified by:
visitDeckin interfaceDeckVisitor
-
visitDefault
Description copied from interface:PieceVisitorGamePieces that are not handled by one of the type-specific methods (e.g.PieceVisitor.visitStack(VASSAL.counters.Stack)) are handled here- Specified by:
visitDefaultin interfacePieceVisitor
-
visitStack
Description copied from interface:PieceVisitorPerform the operation on a Stack- Specified by:
visitStackin interfacePieceVisitor
-
select
Description copied from interface:PieceFinderReturn the argument GamePiece (or one of its children if a Stack) found at the given point on the given Map- Specified by:
selectin interfacePieceFinder
-