Class PieceFinder.Movable
java.lang.Object
VASSAL.counters.PieceFinder.Movable
- All Implemented Interfaces:
DeckVisitor
,PieceFinder
,PieceVisitor
- Direct Known Subclasses:
CounterDetailViewer.Visitor
,PieceFinder.MatOnly
,PieceFinder.PieceInStack
,PieceFinder.StackOnly
- Enclosing interface:
PieceFinder
-
Nested Class Summary
Nested classes/interfaces inherited from interface VASSAL.counters.PieceFinder
PieceFinder.DeckOrPieceInStack, PieceFinder.MatOnly, PieceFinder.Movable, PieceFinder.PieceInStack, PieceFinder.StackOnly
-
Field Summary
Modifier and TypeFieldDescriptionprotected DeckVisitorDispatcher
protected Map
protected Point
protected Shape[]
Fields inherited from interface VASSAL.counters.PieceFinder
DECK_OR_PIECE_IN_STACK, MAT_ONLY, MOVABLE, PIECE_IN_STACK, STACK_ONLY
-
Constructor Summary
-
Method Summary
Modifier 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.visitStack
(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:DeckVisitor
Perform the operation on a Deck- Specified by:
visitDeck
in interfaceDeckVisitor
-
visitDefault
Description copied from interface:PieceVisitor
GamePieces that are not handled by one of the type-specific methods (e.g.PieceVisitor.visitStack(VASSAL.counters.Stack)
) are handled here- Specified by:
visitDefault
in interfacePieceVisitor
-
visitStack
Description copied from interface:PieceVisitor
Perform the operation on a Stack- Specified by:
visitStack
in interfacePieceVisitor
-
select
Description copied from interface:PieceFinder
Return the argument GamePiece (or one of its children if a Stack) found at the given point on the given Map- Specified by:
select
in interfacePieceFinder
-