VASSAL.counters
Class PieceFinder.Movable
java.lang.Object
|
+--VASSAL.counters.PieceFinder.Movable
- All Implemented Interfaces:
- DeckVisitor, PieceFinder, PieceVisitor
- Direct Known Subclasses:
- PieceFinder.PieceInStack, PieceFinder.StackOnly
- Enclosing class:
- PieceFinder
- public static class PieceFinder.Movable
- extends java.lang.Object
- implements PieceFinder, DeckVisitor
|
Method Summary |
GamePiece |
select(Map map,
GamePiece piece,
java.awt.Point pt)
Return the argument GamePiece (or one of its children if a Stack) found at the given point on the given Map |
java.lang.Object |
visitDeck(Deck d)
Perform the operation on a Deck |
java.lang.Object |
visitDefault(GamePiece piece)
GamePieces that are not handled by one of the type-specific methods (e.g. |
java.lang.Object |
visitStack(Stack s)
Perform the operation on a Stack |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
shapes
protected java.awt.Shape[] shapes
map
protected Map map
pt
protected java.awt.Point pt
dispatcher
protected DeckVisitorDispatcher dispatcher
PieceFinder.Movable
public PieceFinder.Movable()
visitDeck
public java.lang.Object visitDeck(Deck d)
- Description copied from interface:
DeckVisitor
- Perform the operation on a Deck
- Specified by:
visitDeck in interface DeckVisitor
visitDefault
public java.lang.Object visitDefault(GamePiece piece)
- 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 interface PieceVisitor
visitStack
public java.lang.Object visitStack(Stack s)
- Description copied from interface:
PieceVisitor
- Perform the operation on a Stack
- Specified by:
visitStack in interface PieceVisitor
select
public GamePiece select(Map map,
GamePiece piece,
java.awt.Point pt)
- 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 interface PieceFinder