Class GlobalCommand.IndexedFastmatchDeckPolicyManager
java.lang.Object
VASSAL.counters.GlobalCommand.IndexedFastmatchDeckPolicyManager
- Enclosing class:
GlobalCommand
A class to manage the application of GKC's against multiple Decks by the Fast Match Code
that uses Location indexes.
Standard GKC process Scans a whole Deck at once and applys the Deck Limits once only.
Location based fast-match by-passes the normal Deck processing and returns an unordered list of
individual pieces that may reside in multiple Decks.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
Class to track the acceptance count of pieces from multiple Decks -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(GamePiece piece, DeckVisitorDispatcher dispatcher, GlobalCommandVisitor visitor) If a piece resides in a Deck, check if the Deck acceptance limit has been reached for that particular Deck before running the piece through the dispatcher.
-
Constructor Details
-
IndexedFastmatchDeckPolicyManager
-
-
Method Details
-
accept
If a piece resides in a Deck, check if the Deck acceptance limit has been reached for that particular Deck before running the piece through the dispatcher.- Parameters:
piece
- Piece to Checkdispatcher
- Dispatchervisitor
- Visitor
-