VASSAL.counters
Interface PieceVisitor
- All Known Subinterfaces:
- DeckVisitor
- All Known Implementing Classes:
- MassKeyCommand
- public interface PieceVisitor
For implementing a somewhat modified Visitor pattern for GamePieces.
- See Also:
PieceVisitorDispatcher
|
Method Summary |
java.lang.Object |
visitDefault(GamePiece p)
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 |
visitStack
public java.lang.Object visitStack(Stack s)
- Perform the operation on a Stack
visitDefault
public java.lang.Object visitDefault(GamePiece p)
- GamePieces that are not handled by one of the type-specific methods (e.g.
visitStack(VASSAL.counters.Stack)) are handled here