Package VASSAL.build.module.map
Class KeyBufferer.KBDeckVisitor
java.lang.Object
VASSAL.build.module.map.KeyBufferer.KBDeckVisitor
- All Implemented Interfaces:
DeckVisitor
,PieceVisitor
- Enclosing class:
KeyBufferer
This "Visitor" dispatcher receives a method call for EVERY piece on the map (one by one), and must filter the
pieces based on their presence in the appropriate selection bounds and take the correct action vis-a-vis that
piece's selection status.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionProcesses decks from the map.Handles non-stacked units, including Does Not Stack units.visitStack
(Stack s) Processes stacks from the map
-
Constructor Details
-
KBDeckVisitor
-
-
Method Details
-
visitDeck
Processes decks from the map. Decks themselves are never band-selected- Specified by:
visitDeck
in interfaceDeckVisitor
- Parameters:
d
- a deck- Returns:
- always null (tells map's accept to keep processing all pieces)
-
visitStack
Processes stacks from the map- Specified by:
visitStack
in interfacePieceVisitor
- Parameters:
s
- a stack- Returns:
- always null (tells map's accept to keep processing all pieces)
-
visitDefault
Handles non-stacked units, including Does Not Stack units. Does Not Stack units deselect normally once selected.- Specified by:
visitDefault
in interfacePieceVisitor
- Parameters:
p
- a piece- Returns:
- always null (tells map's accept to keep processing all pieces)
-